:root {
    --primary: #1557a5;
    --primary-dark: #0b3d78;
    --primary-light: #eaf3ff;

    --text-dark: #172033;
    --text-muted: #64748b;

    --border: #e2e8f0;

    --danger: #dc3545;
    --success: #198754;

    --shadow: 0 20px 50px rgba(15, 35, 65, 0.12);
}


/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

body.auth-body {
    margin: 0;
    padding: 0;

    font-family: "Inter", sans-serif;

    background: #f5f7fb;

    color: var(--text-dark);
}


/* =========================================================
   MAIN WRAPPER
========================================================= */

.auth-wrapper {
    min-height: 100vh;

    display: flex;
}


/* =========================================================
   LEFT BRAND PANEL
========================================================= */

.auth-brand-panel {
    width: 52%;

    min-height: 100vh;

    position: relative;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    justify-content: space-between;

    padding: 55px 70px;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(255, 255, 255, 0.10),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #0b3d78 0%,
            #1557a5 48%,
            #1c6bc5 100%
        );
}


/* Decorative circle - Top Right */

.auth-brand-panel::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -200px;
    top: -150px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.10);
}


/* Decorative circle - Bottom Left */

.auth-brand-panel::after {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    left: -330px;
    bottom: -330px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.08);
}


/* =========================================================
   BRAND CONTENT
========================================================= */

.brand-content {
    position: relative;

    z-index: 2;

    max-width: 620px;

    margin: auto 0;
}


/* =========================================================
   LOGO
========================================================= */

.brand-logo-box {
    width: 60px;
    height: 60px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.16);

    border: 1px solid rgba(255, 255, 255, 0.25);

    backdrop-filter: blur(10px);

    font-size: 21px;

    font-weight: 800;

    letter-spacing: -1px;
}


/* =========================================================
   BRAND NAME
========================================================= */

.brand-name {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 18px;
}

.brand-name span {
    font-size: 22px;

    font-weight: 800;

    letter-spacing: -0.5px;
}

.brand-name strong {
    font-size: 13px;

    font-weight: 600;

    letter-spacing: 2px;

    opacity: 0.90;
}


/* =========================================================
   BRAND LINE
========================================================= */

.brand-line {
    width: 55px;

    height: 3px;

    margin: 32px 0;

    border-radius: 5px;

    background: rgba(255, 255, 255, 0.85);
}


/* =========================================================
   BRAND HEADING
========================================================= */

.brand-content h1 {
    margin: 0 0 22px;

    font-size: 48px;

    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -1.5px;
}


/* =========================================================
   BRAND DESCRIPTION
========================================================= */

.brand-description {
    max-width: 500px;

    margin-bottom: 38px;

    font-size: 16px;

    line-height: 1.7;

    color: rgba(255, 255, 255, 0.82);
}


/* =========================================================
   FEATURES
========================================================= */

.brand-features {
    display: flex;

    flex-direction: column;

    gap: 18px;
}


.brand-feature {
    display: flex;

    align-items: center;

    gap: 15px;
}


.feature-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: rgba(255, 255, 255, 0.13);

    border: 1px solid rgba(255, 255, 255, 0.15);

    font-size: 15px;
}


.brand-feature strong {
    display: block;

    margin-bottom: 3px;

    font-size: 14px;

    font-weight: 600;
}


.brand-feature span {
    display: block;

    font-size: 12px;

    color: rgba(255, 255, 255, 0.65);
}


/* =========================================================
   LEFT FOOTER
========================================================= */

.brand-footer {
    position: relative;

    z-index: 2;

    font-size: 11px;

    color: rgba(255, 255, 255, 0.55);
}


/* =========================================================
   RIGHT FORM PANEL
========================================================= */

.auth-form-panel {
    width: 48%;

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    padding: 40px;

    background: #f8fafc;
}


/* =========================================================
   AUTH CARD
========================================================= */

.auth-card {
    width: 100%;

    max-width: 455px;

    padding: 42px;

    background: #ffffff;

    border: 1px solid rgba(226, 232, 240, 0.80);

    border-radius: 18px;

    box-shadow: var(--shadow);
}


/* =========================================================
   AUTH HEADER
========================================================= */

.auth-header {
    margin-bottom: 32px;
}


.auth-header h2 {
    margin: 0 0 8px;

    color: var(--text-dark);

    font-size: 28px;

    line-height: 1.25;

    font-weight: 750;

    letter-spacing: -0.5px;
}


.auth-header p {
    margin: 0;

    color: var(--text-muted);

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   FORM GROUP
========================================================= */

.form-group-custom {
    margin-bottom: 20px;
}


.form-label-custom {
    display: block;

    margin-bottom: 8px;

    color: #334155;

    font-size: 13px;

    font-weight: 600;
}


/* =========================================================
   INPUT WRAPPER
========================================================= */

.input-wrapper {
    position: relative;

    width: 100%;
}


.input-icon {
    position: absolute;

    left: 15px;

    top: 50%;

    z-index: 2;

    transform: translateY(-50%);

    color: #94a3b8;

    font-size: 15px;

    pointer-events: none;
}


/* =========================================================
   INPUT
========================================================= */

.form-control-custom {
    width: 100%;

    height: 50px;

    padding: 0 15px 0 45px;

    border: 1px solid var(--border);

    border-radius: 10px;

    outline: none;

    background: #ffffff;

    color: var(--text-dark);

    font-family: "Inter", sans-serif;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.form-control-custom::placeholder {
    color: #a0aec0;
}


.form-control-custom:hover {
    border-color: #cbd5e1;
}


.form-control-custom:focus {
    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(21, 87, 165, 0.10);
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {
    position: absolute;

    right: 15px;

    top: 50%;

    transform: translateY(-50%);

    padding: 4px;

    border: none;

    outline: none;

    background: transparent;

    color: #94a3b8;

    cursor: pointer;
}


.password-toggle:hover {
    color: var(--primary);
}


/* =========================================================
   AUTH OPTIONS
========================================================= */

.auth-options {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 25px;

    font-size: 13px;
}


.remember-label {
    display: flex;

    align-items: center;

    gap: 7px;

    margin: 0;

    color: var(--text-muted);

    cursor: pointer;

    user-select: none;
}


.remember-label input {
    width: 15px;
    height: 15px;

    margin: 0;

    accent-color: var(--primary);

    cursor: pointer;
}


.auth-link {
    color: var(--primary);

    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;
}


.auth-link:hover {
    color: var(--primary-dark);

    text-decoration: underline;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.btn-auth {
    width: 100%;

    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 0 20px;

    border: none;

    border-radius: 10px;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );

    color: #ffffff;

    font-family: "Inter", sans-serif;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(21, 87, 165, 0.20);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}


.btn-auth:hover {
    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 10px 24px rgba(21, 87, 165, 0.28);
}


.btn-auth:active {
    transform: translateY(0);
}


.btn-auth:disabled {
    opacity: 0.75;

    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   ALERT
========================================================= */

.auth-alert {
    padding: 12px 14px;

    margin-bottom: 20px;

    border: none;

    border-radius: 10px;

    font-size: 13px;

    line-height: 1.5;
}


.auth-alert-danger {
    background: #fff1f2;

    color: #be123c;
}


.auth-alert-success {
    background: #ecfdf5;

    color: #047857;
}


/* =========================================================
   VALIDATION ERROR
========================================================= */

.field-error {
    margin-top: 6px;

    color: var(--danger);

    font-size: 12px;

    line-height: 1.4;
}


/* =========================================================
   SECURITY NOTE
========================================================= */

.security-note {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    margin-top: 22px;

    color: #94a3b8;

    font-size: 11px;
}


/* =========================================================
   BACK TO LOGIN
========================================================= */

.back-login {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    margin-top: 22px;

    font-size: 13px;
}


/* =========================================================
   BOTTOM TEXT
========================================================= */

.auth-bottom-text {
    margin-top: 25px;

    color: #94a3b8;

    font-size: 11px;

    letter-spacing: 0.3px;
}


/* =========================================================
   MOBILE BRAND
========================================================= */

.auth-mobile-brand {
    display: none;
}


.mobile-logo {
    display: flex;

    align-items: center;
    justify-content: center;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .auth-brand-panel {
        width: 48%;

        padding: 45px;
    }

    .auth-form-panel {
        width: 52%;

        padding: 30px;
    }

    .brand-content h1 {
        font-size: 40px;
    }

    .brand-description {
        font-size: 14px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .auth-wrapper {
        display: block;

        min-height: 100vh;
    }


    /* Hide desktop branding */

    .auth-brand-panel {
        display: none;
    }


    /* Full width form */

    .auth-form-panel {
        width: 100%;

        min-height: 100vh;

        padding: 25px 18px;

        justify-content: flex-start;
    }


    /* Mobile brand */

    .auth-mobile-brand {
        display: flex;

        align-items: center;

        gap: 10px;

        width: 100%;

        max-width: 455px;

        margin: 0 auto 25px;
    }


    .mobile-logo {
        width: 44px;
        height: 44px;

        flex-shrink: 0;

        border-radius: 11px;

        background: var(--primary);

        color: #ffffff;

        font-size: 16px;

        font-weight: 800;
    }


    .auth-mobile-brand strong {
        display: block;

        color: var(--primary);

        font-size: 17px;

        line-height: 1;
    }


    .auth-mobile-brand span {
        display: block;

        margin-top: 4px;

        color: #64748b;

        font-size: 9px;

        font-weight: 600;

        letter-spacing: 1.2px;
    }


    /* Card */

    .auth-card {
        width: 100%;

        max-width: 455px;

        padding: 28px 22px;

        border-radius: 15px;
    }


    .auth-header {
        margin-bottom: 27px;
    }


    .auth-header h2 {
        font-size: 24px;
    }


    .auth-header p {
        font-size: 13px;
    }


    .auth-options {
        font-size: 12px;
    }


    .auth-bottom-text {
        margin-top: 20px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .auth-form-panel {
        padding: 20px 12px;
    }


    .auth-card {
        padding: 24px 18px;
    }


    .auth-header h2 {
        font-size: 22px;
    }


    .form-control-custom {
        height: 48px;
    }


    .btn-auth {
        height: 48px;
    }

}
