/* ===== Trang đăng nhập ===== */
.login-page {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f4f6f8 45%, #e4e8ed 100%);
}

/* ===== Ảnh nền full màn hình ===== */
.login-page .bg-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

/* ===== Logo + tiêu đề góc trái ===== */
.login-page .brand {
    position: absolute;
    top: 24px;
    left: 32px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
}

    .login-page .brand img {
        height: 110px;
        width: auto;
        display: block;
    }

.login-page .brand-text .title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: .2px;
    background: linear-gradient(90deg, #c81f24 0%, #e35d5d 55%, #f0932b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 2px rgba(255,255,255,.6);
}

/* ===== Khung đăng nhập ===== */
.login-page .wrapper {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 150px 8vw;
    overflow-y: auto;
}

.login-page .login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 44px 44px 34px;
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
}

    .login-page .login-card h1 {
        font-size: 30px;
        font-weight: 700;
        text-align: center;
        color: #2b2f3a;
        margin: 0 0 34px;
    }

.login-page .field {
    margin-bottom: 20px;
    position: relative;
}

    .login-page .field input {
        width: 100%;
        height: 52px;
        padding: 0 16px;
        font-size: 15px;
        font-family: inherit;
        color: #2b2f3a;
        background: #fff;
        border: 1px solid #cfd3da;
        border-radius: 10px;
        outline: none;
        transition: border-color .2s, box-shadow .2s;
    }

        .login-page .field input::placeholder {
            color: #9aa0ab;
        }

        .login-page .field input:focus {
            border-color: #e35d5d;
            box-shadow: 0 0 0 3px rgba(227,93,93,.15);
        }

        .login-page .field input:disabled {
            background: #f5f6f8;
            color: #9aa0ab;
        }

    .login-page .field.password input {
        padding-right: 50px;
    }

.login-page .toggle-pw {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    line-height: 0;
    color: #6b7280;
}

    .login-page .toggle-pw svg {
        width: 22px;
        height: 22px;
    }

.login-page .btn-submit {
    width: 100%;
    height: 52px;
    margin-top: 6px;
    border: none;
    border-radius: 10px;
    background: #eef0f3;
    color: #a6acb5;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: not-allowed;
    transition: background .2s, color .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    /* Trạng thái chưa nhập đủ / đang xử lý: xám nhạt */
    .login-page .btn-submit:disabled {
        background: #eef0f3 !important;
        color: #a6acb5 !important;
        box-shadow: none;
    }

    .login-page .btn-submit.active {
        background: #e35d5d;
        color: #fff;
        cursor: pointer;
    }

        .login-page .btn-submit.active:hover {
            background: #d54747;
        }

        .login-page .btn-submit.active:active {
            transform: translateY(1px);
        }

.login-page .btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0,0,0,.15);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: login-spin .7s linear infinite;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

.login-page .copyright {
    margin: 22px 0 0;
    text-align: center;
    font-size: 13px;
    color: #8a8a8a;
}

/* ===== Footer ===== */
.login-page .footer {
    position: absolute;
    bottom: 22px;
    left: 32px;
    display: flex;
    gap: 40px;
    font-size: 15px;
    color: #333;
    z-index: 10;
}

    .login-page .footer span {
        display: flex;
        align-items: center;
        gap: 8px;
    }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .login-page .wrapper {
        justify-content: center;
        padding: 110px 20px;
    }

    .login-page .footer {
        left: 0;
        right: 0;
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
        font-size: 13px;
    }

    .login-page .brand {
        gap: 14px;
    }

        .login-page .brand img {
            height: 76px;
        }

    .login-page .brand-text .title {
        font-size: 19px;
    }
}

@media (max-width: 600px) {
    .login-page .brand {
        gap: 11px;
    }

        .login-page .brand img {
            height: 58px;
        }

    .login-page .brand-text .title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .login-page .login-card {
        padding: 32px 24px 26px;
    }

        .login-page .login-card h1 {
            font-size: 24px;
        }
}
