/* ======= LOGIN PAGE STYLES ======= */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");

:root {
    --color-bg: #f0f0f0;
    --color-bg-secondary: rgba(255, 255, 255, 0.15);
    --color-text: #111111;
    --color-primary: #4da4e2;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body.dark {
    --color-bg: #1c1c1c;
    --color-bg-secondary: rgba(35, 35, 35, 0.55);
    --color-text: #f5f5f5;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

/* ===== Background ===== */
body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: var(--color-bg);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: var(--color-text);
}

.login-background {
    position: fixed;
    inset: 0;
    background: url("../assets/bgLogin2.webp") center/cover no-repeat;
    z-index: -1;
}

/* ===== Container ===== */
.login-container {
    backdrop-filter: blur(50px);
    background: var(--color-bg-secondary);
    border-radius: 15px;
    padding: 2.5rem 3rem;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

/* ===== Logo Section ===== */
.login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: #111111;
}

/* ===== Form ===== */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    text-align: left;
}

.form-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
    color: var(--color-text);
}

.form-group input {
    width: 94%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(77, 164, 226, 0.25);
}

/* Password field with eye icon */
.password-wrapper {
    position: relative;
}

.password-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-text);
    opacity: 0.7;
    transition: 0.2s;
}

.password-wrapper i:hover {
    opacity: 1;
    color: #1c1c1c;
}

/* ===== Button ===== */
.btn-login {
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login:hover {
    background: #318ac9;
}

/* ===== Responsive ===== */
@media (max-width: 500px) {
    .login-container {
        margin: 0 1rem;
        padding: 2rem;
    }
}
