* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", "Segoe UI", sans-serif;
}

body {
    height: 100dvh;
    background: linear-gradient(135deg, #eef5ff, #f8fbff);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CONTAINER */
.login-box {
    width: 600px;
    padding: 40px 35px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: 0.3s;
}

.login-logo {
    width: 100%;
    margin-bottom: 20px;
}

.login-logo img {
    width: 100%;
    height: auto;
    max-height: 80px; /* tránh logo quá cao */
    object-fit: contain;
}

/* TITLE */
.login-box h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1f2d3d;
    margin-bottom: 25px;
}

/* ALERT */
.alert {
    background: #ffecec;
    color: #e74c3c;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* INPUT GROUP */
.input-group {
    position: relative;
    margin-bottom: 18px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e3e8ef;
    outline: none;
    font-size: 14px;
    transition: all 0.25s ease;
    background: #fff;
}

/* FOCUS EFFECT */
.input-group input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* PASSWORD ICON */
.password-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    cursor: pointer;
    color: #94a3b8;
}

.toggle-password svg {
    width: 100%;
    height: 100%;
    display: none;
}

/* default */
.toggle-password .icon-eye {
    display: block;
}

/* active */
.toggle-password.active .icon-eye {
    display: none;
}

.toggle-password.active .icon-eye-off {
    display: block;
}

.input-group input {
    padding-right: 42px;
}

.error {
    text-align: left;
    font-size: 12px;
    color: #e74c3c;
    margin-top: 5px;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #4a90e2, #6fb1fc);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

.btn:active {
    transform: scale(0.98);
}

@media (max-width: 1024px) {
    .login-box {
        width: 500px;
        padding: 35px 25px;
    }

    .login-box h2 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .login-box {
        width: 100%;
        padding: 30px 20px;
        border-radius: 16px;
    }

    .login-logo img {
        width: 100%;
        max-height: 60px;
    }

    .login-box h2 {
        font-size: 18px;
    }

    .input-group input {
        padding: 12px 14px;
        font-size: 13px;
    }

    .btn {
        padding: 12px;
        font-size: 14px;
    }
}