﻿:root {
    --primary: #168fbd;
    --primary-2: #22a4cf;
    --primary-dark: #0f5f8e;
    --bg: #edf6fb;
    --text: #12395f;
    --muted: #6f8aa4;
    --border: #dcebf4;
    --card: #ffffff;
    --shadow: 0 24px 70px rgba(26, 82, 130, 0.16);
    --radius-xl: 32px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    text-decoration: none;
}

button,
input {
    font-family: inherit;
}

.auth-screen {
    min-height: 100vh;
    width: 100%;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 10% 15%, rgba(34, 164, 207, 0.22), transparent 30%), radial-gradient(circle at 90% 90%, rgba(15, 95, 142, 0.20), transparent 32%), linear-gradient(135deg, #f5fbff 0%, #e7f3fb 45%, #dcecf7 100%);
}

.auth-card {
    width: 100%;
    max-width: 1120px;
    min-height: 680px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.auth-visual {
    position: relative;
    overflow: hidden;
    padding: 42px;
    color: #fff;
    background: linear-gradient(145deg, rgba(20, 137, 184, 0.95), rgba(14, 83, 137, 0.98)), url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.12' stroke-width='1'%3E%3Cpath d='M0 60 H400'/%3E%3Cpath d='M0 130 H400'/%3E%3Cpath d='M0 200 H400'/%3E%3Cpath d='M0 270 H400'/%3E%3Cpath d='M0 340 H400'/%3E%3Cpath d='M60 0 V400'/%3E%3Cpath d='M130 0 V400'/%3E%3Cpath d='M200 0 V400'/%3E%3Cpath d='M270 0 V400'/%3E%3Cpath d='M340 0 V400'/%3E%3C/g%3E%3C/svg%3E");
}

.visual-blur {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.32;
    background: #fff;
}

.visual-blur-1 {
    top: -120px;
    right: -90px;
}

.visual-blur-2 {
    bottom: -130px;
    left: -110px;
}

.visual-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon,
.mobile-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.brand-name {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand-desc {
    font-size: 14px;
    opacity: 0.82;
}

.visual-title {
    margin-top: auto;
    font-size: 48px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.visual-subtitle {
    max-width: 480px;
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.visual-stats {
    margin-top: 38px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.visual-stat {
    width: fit-content;
    min-width: 260px;
    height: 52px;
    padding: 0 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

.auth-panel {
    padding: 54px 52px 34px;
    background: radial-gradient(circle at top right, rgba(34, 164, 207, 0.08), transparent 34%), #ffffff;
    display: flex;
    flex-direction: column;
}

.mobile-brand {
    display: none;
}

.desktop-form-title h1 {
    margin: 0;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -0.045em;
    color: #133d66;
}

.desktop-form-title p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.auth-form {
    margin-top: 38px;
}

.input-group-app {
    margin-bottom: 18px;
}

    .input-group-app label {
        display: block;
        margin-bottom: 9px;
        color: #214b73;
        font-size: 14px;
        font-weight: 800;
    }

.input-card {
    width: 100%;
    height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    background: #f9fcff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 22px rgba(20, 80, 126, 0.05);
    transition: 0.22s ease;
}

    .input-card:focus-within {
        background: #fff;
        border-color: rgba(34, 164, 207, 0.72);
        box-shadow: 0 0 0 4px rgba(34, 164, 207, 0.12);
    }

.input-icon {
    width: 24px;
    text-align: center;
    color: #7fa0ba;
    flex: 0 0 auto;
}

.input-card input {
    flex: 1;
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #173f67;
    font-size: 15px;
    font-weight: 600;
}

    .input-card input::placeholder {
        color: #98adbf;
        font-weight: 500;
    }

.password-toggle {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: none;
    outline: none;
    border-radius: 10px;
    background: transparent;
    color: #7fa0ba;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .password-toggle:hover {
        background: #edf6fb;
        color: var(--primary);
    }

.form-options {
    margin: 4px 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.remember-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5c7893;
    font-weight: 600;
    cursor: pointer;
}

    .remember-box input {
        width: 16px;
        height: 16px;
        accent-color: var(--primary);
    }

.form-options a {
    color: var(--primary);
    font-weight: 800;
}

.btn-login-mobile {
    width: 100%;
    height: 58px;
    border: none;
    outline: none;
    border-radius: 18px;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-2), var(--primary-dark));
    box-shadow: 0 16px 28px rgba(22, 143, 189, 0.26);
    transition: 0.22s ease;
}

    .btn-login-mobile:hover {
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 20px 34px rgba(22, 143, 189, 0.32);
    }

    .btn-login-mobile:active {
        transform: translateY(0);
    }

.auth-footer-note {
    margin-top: auto;
    padding-top: 26px;
    color: #91a8bb;
    font-size: 13px;
    text-align: center;
}

/* Tablet */
@media (max-width: 991px) {
    .auth-screen {
        padding: 18px;
    }

    .auth-card {
        max-width: 520px;
        min-height: auto;
        display: block;
        border-radius: 30px;
    }

    .auth-visual {
        display: none;
    }

    .auth-panel {
        min-height: calc(100vh - 36px);
        padding: 38px 26px 26px;
    }

    .mobile-brand {
        display: block;
        text-align: center;
        margin-bottom: 34px;
    }

    .mobile-logo {
        width: 88px;
        height: 88px;
        margin: 0 auto 16px;
        border-radius: 26px;
        color: #fff;
        font-size: 42px;
        background: linear-gradient(180deg, var(--primary-2), var(--primary-dark));
        border: none;
        box-shadow: 0 16px 34px rgba(34, 164, 207, 0.28);
    }

    .mobile-brand h1 {
        margin: 0;
        font-size: 26px;
        line-height: 1.25;
        font-weight: 900;
        letter-spacing: -0.035em;
        color: #133d66;
    }

    .mobile-brand p {
        margin: 10px auto 0;
        max-width: 300px;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.5;
    }

    .desktop-form-title {
        display: none;
    }

    .auth-form {
        margin-top: 0;
    }
}

/* Mobile app style */
@media (max-width: 575px) {
    html,
    body {
        background: #f4fbff;
    }

    .auth-screen {
        min-height: 100svh;
        padding: 0;
        align-items: stretch;
        background: radial-gradient(circle at 50% -10%, rgba(34, 164, 207, 0.22), transparent 42%), linear-gradient(180deg, #f8fdff 0%, #eef7fc 100%);
    }

    .auth-card {
        width: 100%;
        max-width: none;
        min-height: 100svh;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .auth-panel {
        min-height: 100svh;
        padding: 32px 20px 22px;
        background: radial-gradient(circle at bottom left, rgba(34, 164, 207, 0.12), transparent 34%), radial-gradient(circle at bottom right, rgba(14, 83, 137, 0.10), transparent 36%), transparent;
    }

    .mobile-brand {
        margin-bottom: 38px;
    }

    .mobile-logo {
        width: 92px;
        height: 92px;
        border-radius: 28px;
        margin-bottom: 18px;
    }

    .mobile-brand h1 {
        font-size: 25px;
    }

    .input-group-app {
        margin-bottom: 15px;
    }

        .input-group-app label {
            display: none;
        }

    .input-card {
        height: 58px;
        border-radius: 17px;
        background: #ffffff;
    }

    .form-options {
        margin-top: 4px;
    }

    .btn-login-mobile {
        height: 58px;
        margin-top: 4px;
        border-radius: 17px;
        font-size: 18px;
    }

    .auth-footer-note {
        font-size: 12px;
    }
}
/* ===== Logo brand ===== */
.brand-logo-wrap {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.mobile-logo-image {
    width: 92px;
    height: 92px;
    margin: 0 auto 14px;
    padding: 8px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(24, 144, 196, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 18px;
}

.auth-visual-text {
    margin-top: 28px;
}

    .auth-visual-text h2 {
        margin: 0 0 10px;
        font-size: 30px;
        line-height: 1.25;
        font-weight: 800;
        color: #ffffff;
    }

    .auth-visual-text p {
        margin: 0;
        font-size: 15px;
        line-height: 1.7;
        color: rgba(255, 255, 255, 0.88);
    }

.brand-name {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
}

.brand-desc {
    margin-top: 6px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.86);
}

/* Mobile */
@media (max-width: 768px) {
    .brand-logo-wrap {
        width: 74px;
        height: 74px;
        border-radius: 20px;
    }

    .mobile-logo-image {
        width: 84px;
        height: 84px;
        border-radius: 22px;
    }

    .brand-name {
        font-size: 22px;
    }

    .brand-desc {
        font-size: 13px;
    }

    .auth-visual-text h2 {
        font-size: 24px;
    }

    .auth-visual-text p {
        font-size: 14px;
    }
}
/* ===============================
   LOGIN - White Brand Theme
   Logo nền trắng nhìn sạch hơn
   =============================== */

.auth-visual {
    background: radial-gradient(circle at top right, rgba(34, 164, 207, 0.16), transparent 34%), radial-gradient(circle at bottom left, rgba(34, 164, 207, 0.12), transparent 32%), linear-gradient(135deg, #ffffff 0%, #f3fbff 100%) !important;
    border-right: 1px solid #dcebf4;
}

.visual-blur {
    background: rgba(34, 164, 207, 0.12) !important;
    filter: blur(45px);
}

.brand-logo-wrap {
    background: #ffffff;
    border: 1px solid #dcebf4;
    box-shadow: 0 12px 30px rgba(25, 77, 124, 0.10);
}

.brand-name {
    color: #12395f !important;
}

.brand-desc {
    color: #718ca6 !important;
}

.auth-visual-text h2 {
    color: #12395f !important;
}

.auth-visual-text p {
    color: #557592 !important;
}

.auth-panel {
    background: radial-gradient(circle at top right, rgba(34, 164, 207, 0.08), transparent 36%), #ffffff;
}

/* Nút đăng nhập giữ màu xanh nhận diện */
.btn-login-mobile {
    background: linear-gradient(135deg, #168fbd, #0f6f9d) !important;
}

/* Logo lớn hơn một chút cho đẹp */
.brand-logo-wrap {
    width: 96px;
    height: 96px;
    border-radius: 26px;
    padding: 9px;
}

.brand-logo-img {
    border-radius: 20px;
}

/* Mobile */
@media (max-width: 768px) {
    .auth-visual {
        display: none;
    }

    .mobile-logo-image {
        background: #ffffff;
        border: 1px solid #dcebf4;
        box-shadow: 0 14px 32px rgba(25, 77, 124, 0.12);
    }
}

/* Small height phones */
@media (max-height: 700px) and (max-width: 575px) {
    .auth-panel {
        padding-top: 22px;
    }

    .mobile-logo {
        width: 78px;
        height: 78px;
        font-size: 36px;
        margin-bottom: 12px;
    }

    .mobile-brand {
        margin-bottom: 24px;
    }

        .mobile-brand h1 {
            font-size: 23px;
        }

        .mobile-brand p {
            display: none;
        }

    .auth-footer-note {
        padding-top: 18px;
    }
}
/* ===============================
   REMOVE LOGO SQUARE BOX
   =============================== */

.brand-logo-wrap {
    width: 96px !important;
    height: 96px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 50% !important;
    overflow: hidden;
}

.brand-logo-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    border-radius: 50% !important;
}

/* Logo trên mobile */
.mobile-logo-image {
    width: 92px !important;
    height: 92px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 50% !important;
    overflow: hidden;
}

.mobile-logo-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    border-radius: 50% !important;
}
.login-alert {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    margin: 0 0 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.login-alert-error {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

    .login-alert-error i {
        color: #dc2626;
        font-size: 16px;
        flex: 0 0 auto;
    }
