/* ============================================================
   Auth-3 — split layout, fixed-width right panel
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #0a0f2e;
    --primary-hover: #131840;
    --gold: #c9a84c;
    --gold-light: #e2c47a;
    --dark: #06091c;
    --accent: #6366f1;
    --accent-dk: #4f46e5;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --white: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #fdfaf4;
}

.auth3-wrap {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* ── Left image panel — fills remaining space ── */
.auth3-brand {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
}

.auth3-brand-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

#glitter-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}


.auth3-brand-logo,
.auth3-brand-features {
    z-index: 2;
}


.auth3-brand-top {
    position: absolute;
    top: 2.5rem;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    z-index: 2;
    pointer-events: none;
}

.auth3-brand-logo {
    display: flex;
    justify-content: center;
}

.auth3-brand-logo img {
    height: 150px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8)) drop-shadow(0 6px 24px rgba(0, 0, 0, .6));
}

.auth3-brand-tagline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

.auth3-brand-tagline span {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: .08em;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .9), 0 4px 20px rgba(0, 0, 0, .7);
    white-space: nowrap;
    text-transform: uppercase;
}

.auth3-divider-img {
    height: 16px;
    width: auto;
    opacity: .85;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .4));
}

.auth3-divider-flip {
    transform: scaleY(-1);
}

/* ── Bottom feature row ── */
.auth3-brand-features {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 2rem;
    pointer-events: none;
}

.auth3-feat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .6rem;
    flex: 1;
    max-width: 190px;
    background: transparent;
    border: 1px solid rgba(201, 168, 76, .45);
    border-radius: 14px;
    padding: 1.1rem 1rem;
    backdrop-filter: blur(6px);
}

.auth3-feat i {
    font-size: 2.5rem;
    color: var(--gold);
}

.auth3-feat img {
    width: 4.7rem;
    height: auto;
    object-fit: contain;
}

.auth3-feat span {
    font-size: 0.8rem;
    font-weight: 400;
    color: #e9e9e9;
    letter-spacing: .02em;
    line-height: 1.5;
    text-transform: uppercase;
}

.auth3-feat-sep {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    flex-shrink: 0;
    position: relative;
}

.auth3-feat-sep span {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    opacity: .6;
    position: relative;
}

.auth3-feat-sep span::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 7px;
    height: 7px;
    background: var(--gold);
    border-radius: 50%;
    opacity: .8;
}

/* ── Right panel — fixed width ── */
.auth3-right {
    width: 480px;
    flex-shrink: 0;
    background: #fdfaf4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem 1.5rem;
}

.auth3-card {
    width: 100%;
    max-width: 380px;
}

@media (min-width: 1400px) {
    .auth3-right {
        width: 560px;
    }

    .auth3-card {
        max-width: 450px;
    }

    #dash-simple {
        margin-top: 5rem;
    }
}

@media (min-width: 1800px) {
    .auth3-right {
        width: 620px;
    }

    .auth3-card {
        max-width: 500px;
    }

    .auth3-feat span {
        font-size: 1rem;
    }

    .auth3-feat i {
        font-size: 2.8rem;
    }

    .auth3-feat img {
        width: 2.8rem;
        height: 2.8rem;
    }

    .auth3-feat {
        max-width: 230px;
    }

    .auth3-brand-tagline span {
        font-size: 1.3rem;
    }

    .auth3-brand-logo img {
        height: 165px;
    }

    .auth3-brand-features {
        bottom: 2rem;
    }
}

/* ── Logo area ── */
.auth2-logo-area {
    text-align: center;
    margin-bottom: 1.1rem;
}

.auth2-logo-circle img {
    height: 68px;
    width: auto;
}

/* ── Heading ── */
.auth2-heading {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth2-heading h1 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    letter-spacing: -.01em;
    margin-bottom: .35rem;
}

.auth2-heading p {
    color: var(--text-muted);
    font-size: .875rem;
    margin-bottom: .85rem;
}

.auth2-heading-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
}

.auth2-heading-divider span {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201, 168, 76, .5));
}

.auth2-heading-divider span:last-child {
    background: linear-gradient(to left, transparent, rgba(201, 168, 76, .5));
}

/* ── Flash ── */
.auth3-flash {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .8rem 1rem;
    border-radius: .6rem;
    font-size: .855rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.auth3-flash .bi {
    font-size: .95rem;
    flex-shrink: 0;
}

.auth3-flash.error {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.auth3-flash.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* ── Field ── */
.auth2-field {
    margin-bottom: 1rem;
}

.auth2-field>label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .45rem;
}

/* ── Input ── */
.auth2-input {
    position: relative;
}

.auth2-input .icon {
    position: absolute;
    left: .95rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
    line-height: 1;
    transition: color .2s;
}

.auth2-input input {
    width: 100%;
    height: 50px;
    padding: 0 3rem 0 2.8rem;
    background: #fff;
    border: 1.5px solid rgba(201, 168, 76, .45);
    border-radius: .6rem;
    font-size: .9rem;
    font-family: inherit;
    color: var(--text-main);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
}

.auth2-input input::placeholder {
    color: #b0bec9;
    font-size: .875rem;
}

.auth2-input input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, .15);
}

.auth2-input:focus-within .icon {
    color: var(--gold);
}

.auth2-input .pw-toggle {
    position: absolute;
    right: .6rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: .35rem .45rem;
    font-size: 1rem;
    line-height: 1;
    border-radius: .4rem;
    transition: color .2s;
    display: flex;
    align-items: center;
}

.auth2-input .pw-toggle:hover {
    color: var(--gold);
}

/* ── Button ── */
.auth2-btn {
    width: 100%;
    height: 52px;
    margin-top: .85rem;
    background: var(--primary);
    color: #fff;
    border: 1.5px solid rgba(201, 168, 76, .35);
    border-radius: .65rem;
    font-size: .95rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: .02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    box-shadow: 0 4px 20px rgba(10, 15, 46, .2);
    transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
    position: relative;
}

.auth2-btn:hover {
    background: var(--primary-hover);
    border-color: rgba(201, 168, 76, .6);
    box-shadow: 0 6px 24px rgba(10, 15, 46, .3);
    transform: translateY(-1px);
}

.auth2-btn:active {
    transform: scale(.985);
}

.auth2-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.auth2-btn .btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .65s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}

/* ── Footer ── */
.auth3-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #b0bec9;
    font-size: .72rem;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    body {
        height: auto;
        overflow: auto;
    }

    .auth3-wrap {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .auth3-brand {
        flex: none;
        max-height: 400px;
    }

    .auth3-brand-img {
        object-position: top;
    }

    .auth3-brand-features {
        display: none;
    }

    .auth3-right {
        width: 100%;
        padding: 2rem;
        position: relative;
        z-index: 1;
    }
}

@media (max-width: 540px) {
    .auth3-brand {
        max-height: 500px;
    }

    .auth3-right {
        padding: 1.5rem;
    }
}