/*
 * EASRMS - LOGIN & REGISTER
 * Employees Attendance & Service Record Management System
 * Desktop: split layout. Mobile: tall blue header + wave + compact form.
 */

/* === BASE === */
.auth-body {
    margin: 0; padding: 0; min-height: 100vh;
    overflow-x: hidden; background: #FAF8F5;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    position: relative;
    contain: layout style;
}

/* ============================================================
   APP NAME BRANDING STYLES
   ============================================================ */
/* Desktop form side: dark gradient text + muted subtitle */
.auth-brand-title {
    display: flex; flex-direction: column; line-height: 1.2;
}
.app-name-dark {
    font-size: .72rem; font-weight: 700; letter-spacing: -.01em;
    color: #0C1527; /* fallback if gradient clip fails on refresh */
    background: linear-gradient(135deg, #0C1527, #1A56DB);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.app-name-muted {
    font-size: .62rem; font-weight: 600; color: #94A3B8;
    letter-spacing: .02em;
}

/* Mobile header: gradient + white */
.mob-brand-title {
    display: flex; flex-direction: column; line-height: 1.2;
}
.app-name-gradient {
    font-size: .72rem; font-weight: 700; letter-spacing: -.01em;
    background: linear-gradient(135deg, #60A5FA, #A5B4FC);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.app-name-white {
    font-size: .62rem; font-weight: 600; color: rgba(255,255,255,.85);
    letter-spacing: .02em;
}

/* Dark panel (sidebar) brand */
.sidebar-brand-title {
    display: flex; flex-direction: column; line-height: 1.15;
}
.sidebar-name-gradient {
    font-size: .72rem; font-weight: 700;
    background: linear-gradient(135deg, #60A5FA, #A5B4FC);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sidebar-name-white {
    font-size: .58rem; font-weight: 500; color: rgba(255,255,255,.6);
    letter-spacing: .02em;
}

/* ============================================================
   MOBILE HEADER  (hidden on desktop)
   ============================================================ */
.mob-header {
    display: none;
    position: relative; z-index: 1;
    background: linear-gradient(160deg, #0C1527 0%, #111D35 40%, #0F2547 70%, #0B1A33 100%);
    color: #fff; overflow: hidden;
}

.mob-header::before {
    content: '';
    position: absolute; top: -25%; right: -12%;
    width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,.25) 0%, transparent 65%);
    pointer-events: none; opacity: 0.9;
}
.mob-header::after {
    content: '';
    position: absolute; bottom: 15%; left: -8%;
    width: 180px; height: 180px; border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,.2) 0%, transparent 65%);
    pointer-events: none; opacity: 0.9;
}

.mob-header-inner {
    padding: 1.75rem 1.5rem 3.8rem;
    position: relative; z-index: 2;
}

/* Brand */
.mob-brand {
    display: flex; align-items: center; gap: 8px; margin-bottom: 1.2rem;
}
.mob-brand-icon {
    width: 30px; height: 30px; border-radius: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; color: #60A5FA;
}
.mob-brand > span { font-size: .85rem; font-weight: 700; color: #F1F5F9; }
.mob-brand .mob-brand-title { flex: 1; }

.mob-header h2 {
    font-size: 1.5rem; font-weight: 800; margin: 0 0 .4rem;
    letter-spacing: -.02em; line-height: 1.15; color: #F8FAFC;
}
.mob-header p {
    font-size: .77rem; color: #94A3B8; line-height: 1.55;
    margin: 0 0 1.2rem;
}

/* Feature mini-list inside mobile header */
.mob-feature-list {
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 1.1rem;
}
.mob-ft {
    display: flex; align-items: center; gap: 10px;
}
.mob-ft > i {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(59,130,246,.12);
    display: flex; align-items: center; justify-content: center;
    font-size: .7rem; color: #60A5FA; flex-shrink: 0;
}
.mob-ft div { display: flex; flex-direction: column; }
.mob-ft strong { font-size: .76rem; color: #E2E8F0; font-weight: 600; }
.mob-ft span  { font-size: .66rem; color: #64748B; line-height: 1.3; }

/* Chips */
.mob-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mob-chips span {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 50px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    font-size: .64rem; font-weight: 500; color: #94A3B8;
}
.mob-chips span i { font-size: .55rem; color: #60A5FA; }

/* Wave */
.mob-wave {
    display: block; width: 100%; height: 45px;
    position: absolute; bottom: -1px; left: 0;
}

/* Register page: shorter header (no feature list) */
.mob-header-sm .mob-header-inner {
    padding-bottom: 3.2rem;
}

/* ============================================================
   DESKTOP LAYOUT
   ============================================================ */
.auth-container { display: flex; width: 100%; min-height: 100vh; position: relative; z-index: 1; contain: layout style; }
.auth-form-side, .auth-feature-side { contain: layout style; }

.auth-form-side {
    flex: 0 0 40%; max-width: 40%;
    display: flex; flex-direction: column; align-items: center;
    padding: 2.25rem 3rem; background: #FAF8F5;
    position: relative; z-index: 2; min-height: 100vh;
}

.auth-brand {
    display: flex; align-items: center; gap: 10px; width: 100%; max-width: 370px;
    position: relative; z-index: 20; /* ensure always visible above watermark */
}
.auth-brand-icon {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, #3B82F6, #6366F1);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: .9rem;
    box-shadow: 0 3px 10px rgba(59,130,246,.3);
}
.auth-brand-name { font-size: .95rem; font-weight: 700; color: #1E293B; }

.auth-form-wrap {
    flex: 1; display: flex; flex-direction: column;
    justify-content: center; max-width: 370px; width: 100%; margin: 0 auto;
}

.auth-form-header { margin-bottom: 1.75rem; text-align: center; }
.auth-form-header h1 {
    font-size: 2rem; font-weight: 800; color: #0F172A;
    letter-spacing: -.03em; margin: 0 0 .5rem; line-height: 1.1;
}
.auth-form-header p { color: #94A3B8; font-size: .88rem; line-height: 1.55; margin: 0; }

/* === FIELDS === */
.auth-field { margin-bottom: 1.1rem; }
.auth-field label {
    display: block; font-size: .76rem; font-weight: 600;
    color: #334155; margin-bottom: 5px;
}
.auth-field input, .auth-input-wrap input, .auth-field .auth-select {
    width: 100%; height: 48px; padding: 0 15px;
    font-family: inherit; font-size: .92rem; color: #0F172A;
    background: #fff; border: 1.5px solid #E2E8F0; border-radius: 12px;
    outline: none; transition: border-color .15s, box-shadow .15s;
}
.auth-field .auth-select { cursor: pointer; appearance: auto; }
.auth-field input::placeholder, .auth-input-wrap input::placeholder { color: #B0BBC9; }
.auth-field input:focus, .auth-input-wrap input:focus, .auth-field .auth-select:focus {
    border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59,130,246,.08);
}

.auth-input-wrap { position: relative; }
.auth-input-wrap input { padding-right: 46px; }
.auth-eye-btn {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    min-width: 44px; min-height: 44px; padding: 0;
    background: none; border: none; color: #64748B; cursor: pointer;
    font-size: .95rem; transition: color .12s; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.auth-eye-btn:hover { color: #334155; }

.auth-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.4rem;
}
.auth-check {
    display: flex; align-items: center; font-size: .8rem; color: #64748B;
    cursor: pointer; user-select: none; position: relative; padding-left: 24px;
}
.auth-check input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.auth-checkmark {
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; border: 1.5px solid #CBD5E1;
    border-radius: 4px; background: #fff; transition: all .15s;
}
.auth-check input:checked ~ .auth-checkmark { background: #3B82F6; border-color: #3B82F6; }
.auth-check input:checked ~ .auth-checkmark::after {
    content: ''; position: absolute; left: 4.5px; top: 1px;
    width: 5px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.auth-link-muted { font-size: .8rem; color: #64748B; text-decoration: none; font-weight: 500; }
.auth-link-muted:hover { color: #3B82F6; }

/* === BUTTON === */
.auth-submit {
    width: 100%; min-height: 48px; height: 50px; border: none; border-radius: 50px;
    background: linear-gradient(135deg, #0C1527 0%, #1A56DB 60%, #3B82F6 100%);
    color: #fff; font-family: inherit; font-size: .93rem; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: transform .12s, box-shadow .15s;
    box-shadow: 0 4px 14px rgba(26,86,219,.3);
    position: relative; overflow: hidden;
}
.auth-submit::before {
    content: ''; position: absolute; inset: 0; border-radius: 50px;
    background: linear-gradient(135deg, rgba(255,255,255,.1), transparent 60%);
    pointer-events: none;
}
.auth-submit:hover  { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(26,86,219,.4); }
.auth-submit:active { transform: translateY(0); }
.auth-submit .auth-spinner {
    display: none; width: 18px; height: 18px;
    border: 2.5px solid rgba(255,255,255,.3); border-top-color: #fff;
    border-radius: 50%; animation: auth-spin .5s linear infinite;
}
.auth-submit.loading .auth-spinner { display: inline-block; }
.auth-submit.loading .btn-text     { display: none; }
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-switch { text-align: center; margin-top: 1.4rem; font-size: .84rem; color: #64748B; }
.auth-switch a { color: #1E293B; font-weight: 600; text-decoration: none; }
.auth-switch a:hover { color: #3B82F6; }

.auth-bottom-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: .6rem; border-top: 1px solid #E8E3DD; margin-top: auto;
    font-size: .7rem; color: #B0B8C4; width: 100%; max-width: 370px;
}
.auth-bottom-links { display: flex; gap: 12px; }
.auth-bottom-links a { color: #B0B8C4; text-decoration: none; }
.auth-bottom-links a:hover { color: #475569; }

/* ============================================================
   RIGHT (Dark panel – desktop)
   ============================================================ */
.auth-feature-side {
    flex: 1; min-width: 0;
    background: linear-gradient(160deg, #0C1527 0%, #111D35 40%, #0F2547 70%, #0B1A33 100%);
    position: relative; overflow-y: auto; overflow-x: hidden;
    display: flex; flex-direction: column; justify-content: flex-start;
    padding: 2.75rem 2.5rem 3rem; min-height: 100vh;
    border-radius: 24px 0 0 24px;
}
.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.glow-1 { width: 400px; height: 400px; top: -12%; right: -10%; background: radial-gradient(circle, rgba(59,130,246,.2) 0%, transparent 65%); opacity: 0.95; }
.glow-2 { width: 300px; height: 300px; bottom: -8%; left: -8%; background: radial-gradient(circle, rgba(99,102,241,.18) 0%, transparent 65%); opacity: 0.95; }

/* Right panel: headline on top of everything, short tagline below */
.feature-panel-top {
    position: absolute; top: 2.75rem; left: 2.5rem; right: 2.5rem;
    z-index: 10; text-align: center;
}
.feature-panel-headline {
    font-size: 1.85rem; font-weight: 800; color: #F8FAFC;
    letter-spacing: -.02em; margin: 0 0 .35rem; line-height: 1.2;
}
.feature-panel-tagline {
    font-size: .8rem; color: #94A3B8; margin: 0; line-height: 1.45;
}
.feature-content-area {
    position: relative; z-index: 3; flex: 1;
    padding-top: 5rem; display: flex; flex-direction: column; gap: 1.75rem;
}

.feature-top { }
.feature-tagline { font-size: .92rem; color: #64748B; margin: 0 0 .15rem; }
.feature-title { font-size: 2.3rem; font-weight: 800; color: #F8FAFC; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 .8rem; }
.feature-sub { font-size: .82rem; color: #64748B; line-height: 1.6; margin: 0; max-width: 400px; }

/* Hero: image + CEO info - FIXED size, smooth corners, consistent */
.feature-hero-wrap {
    display: flex; align-items: center; gap: 1.5rem;
}
.feature-vsquare {
    flex: 0 0 100px; width: 100px; height: 100px;
    min-width: 100px; min-height: 100px; max-width: 100px; max-height: 100px;
    border-radius: 22px; overflow: hidden;
    background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.18);
    contain: layout size; box-shadow: 0 2px 12px rgba(0,0,0,.2);
    -webkit-backface-visibility: hidden; transform: translateZ(0);
}
.feature-vsquare .feature-hero-img {
    width: 100%; height: 100%; display: block;
    object-fit: cover; object-position: center top;
    border-radius: 20px; vertical-align: middle;
}
/* Name/Role - styled box, white text */
.feature-ceo-badge {
    padding: 12px 16px; background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
}
.feature-ceo-badge .ceo-name {
    font-size: .95rem; font-weight: 700; color: #FFFFFF;
    letter-spacing: -.01em; margin-bottom: 2px; display: block;
}
.feature-ceo-badge .ceo-role {
    font-size: .78rem; font-weight: 500; color: #94A3B8;
}
/* Cards */
.feature-cards {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.fcard {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 14px 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08); border-radius: 13px;
    transition: background .12s;
}
.fcard:hover { background: rgba(255,255,255,.07); }
.fcard-icon {
    width: 36px; height: 36px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; flex-shrink: 0;
}
.fc-blue    { background: rgba(59,130,246,.15);  color: #60A5FA; }
.fc-indigo  { background: rgba(99,102,241,.15);  color: #A5B4FC; }
.fc-violet  { background: rgba(139,92,246,.15);  color: #C4B5FD; }
.fc-sky     { background: rgba(56,189,248,.15);  color: #7DD3FC; }
.fc-emerald { background: rgba(52,211,153,.15);  color: #6EE7B7; }
.fc-rose    { background: rgba(244,63,94,.12);   color: #FDA4AF; }
.fcard-text h4 { font-size: .78rem; font-weight: 600; color: #E2E8F0; margin: 0 0 2px; }
.fcard-text p  { font-size: .68rem; color: #64748B; line-height: 1.4; margin: 0; }

.feature-bottom-bar { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 0.5rem; }
.fb-item {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 13px; background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.06); border-radius: 50px;
    font-size: .7rem; font-weight: 500; color: #94A3B8;
}
.fb-item i { font-size: .62rem; color: #60A5FA; }

/* ============================================================
   TOAST
   ============================================================ */
.login-shapes-panel {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 2rem; position: relative;
}
.login-shapes-title {
    font-size: 1.75rem; font-weight: 800; color: #F8FAFC;
    margin: 0 0 .25rem; position: relative; z-index: 5;
}
.login-shapes-tagline {
    font-size: .8rem; color: #94A3B8; margin: 0 0 2rem; position: relative; z-index: 5;
}
.login-shapes-wrap {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem;
    max-width: 420px; position: relative; z-index: 5;
}
.login-shape {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: transform .22s cubic-bezier(.34,1.56,.64,1);
}
.login-shape-excited { animation: shape-excited .5s ease; }
.login-shape-laughing {
    animation: shape-laugh .6s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes shape-excited {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}
@keyframes shape-laugh {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-12deg); }
    75% { transform: rotate(12deg); }
    100% { transform: rotate(0deg); }
}

/* Shape bodies - Triangle, Square, Circle, Oval */
.login-shape-triangle .shape-body,
.login-shape-square .shape-body,
.login-shape-circle .shape-body,
.login-shape-oval .shape-body {
    width: 80px; height: 80px;
    background: var(--shape-color, #6366F1);
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
    position: relative;
}
.login-shape-triangle .shape-body {
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    width: 90px; height: 78px;
}
.login-shape-square .shape-body {
    border-radius: 12px;
}
.login-shape-circle .shape-body {
    border-radius: 50%;
}
.login-shape-oval .shape-body {
    border-radius: 50%;
    width: 100px; height: 70px;
}

/* Eyes & mouth container - positioned inside shape area */
.login-shape .shape-eyes {
    position: absolute; top: 22%; left: 50%; transform: translateX(-50%);
    display: flex; gap: 14px; justify-content: center;
    z-index: 2; pointer-events: none;
}
.login-shape-triangle .shape-eyes { top: 28%; gap: 10px; }
.login-shape-square .shape-eyes { top: 25%; gap: 12px; }
.login-shape-circle .shape-eyes { top: 22%; gap: 14px; }
.login-shape-oval .shape-eyes { top: 20%; gap: 18px; }

.shape-eye {
    width: 14px; height: 14px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
    overflow: hidden;
}

.eye-pupil {
    width: 6px; height: 6px;
    background: #1E293B;
    border-radius: 50%;
    position: relative;
    transition: transform .08s ease-out;
}
.login-shape-excited .shape-eye {
    width: 18px; height: 18px;
    animation: eye-pop .25s ease;
}
@keyframes eye-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.15); }
}

.shape-mouth {
    position: absolute; bottom: 18%;
    width: 24px; height: 12px;
    border: 2px solid #1E293B;
    border-top: none;
    border-radius: 0 0 24px 24px;
    z-index: 2;
    transition: all .15s ease;
}
.login-shape-triangle .shape-mouth { bottom: 22%; width: 20px; height: 10px; }
.login-shape-square .shape-mouth { bottom: 20%; }
.login-shape-circle .shape-mouth { bottom: 18%; }
.login-shape-oval .shape-mouth { bottom: 15%; width: 28px; }

.shape-mouth-excited {
    width: 30px !important; height: 14px !important;
    border-radius: 0 0 30px 30px !important;
}
.login-shape-excited .eye-pupil {
    width: 8px; height: 8px;
}
.login-shape-triangle .shape-mouth-excited { width: 24px !important; height: 12px !important; }

.shape-mouth-laugh {
    width: 32px !important; height: 16px !important;
    border-radius: 0 0 40px 40px !important;
    border-width: 2.5px !important;
}
.login-shape-triangle .shape-mouth-laugh { width: 26px !important; height: 14px !important; }
.login-shape-oval .shape-mouth-laugh { width: 36px !important; }

/* Shape body - use pseudo-element for colored background behind eyes/mouth */
.login-shape::before {
    content: '';
    position: absolute;
    background: var(--shape-color, #6366F1);
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
    z-index: 0;
}
.login-shape-triangle::before {
    width: 90px; height: 78px;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.login-shape-square::before {
    width: 80px; height: 80px;
    border-radius: 12px;
}
.login-shape-circle::before {
    width: 80px; height: 80px;
    border-radius: 50%;
}
.login-shape-oval::before {
    width: 100px; height: 70px;
    border-radius: 50%;
}

.toast {
    position: fixed; top: 18px; right: 18px; padding: 12px 16px;
    border-radius: 12px; font-size: .83rem; font-weight: 500;
    z-index: 9999; display: flex; align-items: center; gap: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    animation: t-in .12s ease, t-out .12s ease 2.2s forwards;
    max-width: 360px; font-family: inherit;
}
.toast-success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.toast-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
@keyframes t-in  { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
@keyframes t-out { to { opacity:0; transform:translateY(-6px); } }

/* ============================================================
   REGISTER GRID
   ============================================================ */
.register-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem .9rem; }
.register-grid .auth-field { margin-bottom: 0; }

.auth-form .form-group { margin-bottom: 1.1rem; }
.auth-form .form-group label { display: block; font-size: .76rem; font-weight: 600; color: #334155; margin-bottom: 5px; }
.auth-form .form-control {
    height: 48px; padding: 0 15px; border: 1.5px solid #E2E8F0; border-radius: 12px;
    font-size: .92rem; background: #fff; font-family: inherit; color: #0F172A;
    width: 100%; outline: none; transition: border-color .15s, box-shadow .15s;
}
.auth-form .form-control::placeholder { color: #B0BBC9; }
.auth-form .form-control:focus { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59,130,246,.08); }

.input-icon-wrapper { position: relative; }
.input-icon-wrapper .form-control { padding-right: 46px; }
.input-icon-wrapper .toggle-password {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #94A3B8; cursor: pointer; font-size: .95rem;
}
.input-icon-wrapper .toggle-password:hover { color: #475569; }

.btn-auth {
    width: 100%; height: 50px; border: none; border-radius: 50px;
    background: linear-gradient(135deg,#0C1527,#1A56DB,#3B82F6);
    color: #fff; font-size: .93rem; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: transform .12s, box-shadow .15s;
    box-shadow: 0 4px 14px rgba(26,86,219,.3); font-family: inherit;
}
.btn-auth:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(26,86,219,.4); }
.btn-auth .spinner { display:none; width:18px; height:18px; border:2.5px solid rgba(255,255,255,.3); border-top-color:#fff; border-radius:50%; animation:auth-spin .5s linear infinite; }
.btn-auth.loading .spinner  { display: inline-block; }
.btn-auth.loading .btn-text { display: none; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 1.2rem 0; color: #94A3B8; font-size: .76rem; }
.auth-divider::before,.auth-divider::after { content:''; flex:1; height:1px; background:#E8E3DD; }
.auth-footer { text-align:center; margin-top:1.2rem; font-size:.84rem; color:#94A3B8; }
.auth-footer a { color:#1E293B; font-weight:600; text-decoration:none; }
.auth-footer a:hover { color:#3B82F6; }
.auth-copyright { position:absolute; bottom:1rem; left:0; right:0; text-align:center; font-size:.7rem; color:#94A3B8; }

/* Searchable dropdown */
.search-select-wrapper { position: relative; }
.search-select-wrapper .search-input {
    width: 100%; height: 48px; padding: 0 32px 0 15px;
    border: 1.5px solid #E2E8F0; border-radius: 12px;
    font-size: .92rem; background: #fff; font-family: inherit; color: #0F172A;
    outline: none; transition: border-color .15s, box-shadow .15s;
}
.search-select-wrapper .search-input::placeholder { color: #B0BBC9; }
.search-select-wrapper .search-input:focus { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59,130,246,.08); }
.search-select-wrapper .dropdown-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #94A3B8; font-size: .68rem; pointer-events: none; }
.search-select-wrapper.open .dropdown-arrow { transform: translateY(-50%) rotate(180deg); }
.search-select-wrapper .dropdown-list {
    position: absolute; top: calc(100% + 3px); left: 0; right: 0;
    background: #fff; border: 1.5px solid #E2E8F0; border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1); max-height: 180px; overflow-y: auto;
    z-index: 100; display: none;
}
.search-select-wrapper.open .dropdown-list { display: block; animation: dd-in .12s ease; }
@keyframes dd-in { from { opacity:0; transform:translateY(-3px); } to { opacity:1; transform:translateY(0); } }
.search-select-wrapper .dropdown-list .dropdown-item { padding: 8px 15px; cursor: pointer; font-size: .85rem; color: #475569; }
.search-select-wrapper .dropdown-list .dropdown-item:hover { background: #EFF6FF; color: #2563EB; }
.search-select-wrapper .dropdown-list .no-results { padding: 10px 15px; color: #94A3B8; font-size: .8rem; text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 1400px) {
    .auth-form-side { flex: 0 0 40%; max-width: 40%; }
    .feature-title  { font-size: 2.6rem; }
}

@media (max-width: 1100px) {
    .auth-form-side    { padding: 2rem; flex: 0 0 48%; max-width: 48%; }
    .auth-feature-side { padding: 2rem 1.75rem; }
    .feature-panel-headline { font-size: 1.6rem; }
    .feature-panel-tagline  { font-size: .75rem; }
    .feature-title     { font-size: 1.9rem; }
    .feature-cards     { gap: 8px; }
}

/* ---- MOBILE ---- */
@media (max-width: 860px) {
    .mob-header { display: block; }

    .auth-container { flex-direction: column; min-height: auto; }

    .auth-form-side {
        flex: none !important; max-width: 100% !important; width: 100%;
        min-height: auto; padding: 1.25rem 1.5rem 1.5rem;
        align-items: center;
    }

    .auth-brand       { display: none; }
    .auth-form-header { display: none; }
    .auth-feature-side { display: none; }

    .auth-form-wrap { max-width: 440px; justify-content: flex-start; }

    .auth-bottom-bar {
        flex-direction: column; gap: 5px; text-align: center;
        padding-top: .5rem; margin-top: 1.25rem;
    }

    .register-grid { grid-template-columns: 1fr; gap: .6rem; }
}

@media (max-width: 480px) {
    .mob-header-inner { padding: 1.4rem 1.25rem 3.2rem; }
    .mob-header h2 { font-size: 1.35rem; }
    .mob-header p  { font-size: .72rem; }
    .mob-ft > i    { width: 28px; height: 28px; font-size: .6rem; }
    .mob-ft strong { font-size: .72rem; }
    .mob-ft span   { font-size: .62rem; }

    .auth-form-side { padding: 1rem 1.1rem 1.25rem; }
    .auth-field input, .auth-input-wrap input { height: 44px; font-size: .87rem; }
    .auth-submit, .btn-auth { height: 46px; font-size: .88rem; }
    .auth-form-wrap { max-width: 100%; }
    .search-select-wrapper .search-input { height: 44px; font-size: .87rem; }
}
