/* ============================================
   KASABASE — PREMIUM AUTH PAGES
   Split-screen design: branding + clean form
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --auth-navy: #0B1437;
    --auth-navy-mid: #111C44;
    --auth-teal: #0EADC4;
    --auth-teal-hover: #0CC8E2;
    --auth-cyan: #38BDF8;
    --auth-purple: #8B5CF6;
    --auth-green: #10B981;
    --auth-white: #FFFFFF;
    --auth-gray-50: #F8FAFC;
    --auth-gray-100: #F1F5F9;
    --auth-gray-200: #E2E8F0;
    --auth-gray-300: #CBD5E1;
    --auth-gray-400: #94A3B8;
    --auth-gray-500: #64748B;
    --auth-gray-600: #475569;
    --auth-gray-700: #334155;
    --auth-gray-800: #1E293B;
    --auth-gray-900: #0F172A;
}

/* ── Override auth2 layout defaults ── */
html {
    height: 100% !important;
    background: var(--auth-white) !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    min-height: 100vh !important;
    background: var(--auth-white) !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hide the default auth2 layout wrappers */
body>.container-fluid {
    padding: 0 !important;
    margin: 0 !important;
}

body>.container-fluid>.row.eq-height-row {
    margin: 0 !important;
}

body>.container-fluid>.row.eq-height-row>.col-md-12 {
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide default auth2 top bar (logo + nav) */
.auth-layout-header-hide {
    display: none !important;
}

/* ── SPLIT SCREEN CONTAINER ── */
.auth-split {
    display: flex;
    min-height: 100vh;
}

/* ── LEFT PANEL — BRANDING ── */
.auth-brand-panel {
    flex: 0 0 45%;
    background: linear-gradient(160deg, var(--auth-navy) 0%, #0D1B3F 40%, #0F2347 70%, var(--auth-navy) 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    overflow: hidden;
}

/* Subtle grid overlay */
.auth-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .015) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Radial glow */
.auth-brand-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 30% 70%, rgba(14, 173, 196, .08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 20%, rgba(139, 92, 246, .06) 0%, transparent 70%);
    pointer-events: none;
}

.brand-top {
    position: relative;
    z-index: 1;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 60px;
}

.brand-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--auth-teal), var(--auth-cyan));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-icon svg {
    width: 22px;
    height: 22px;
}

.brand-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--auth-white);
    letter-spacing: -.3px;
}

.brand-headline {
    font-size: 40px;
    font-weight: 800;
    color: var(--auth-white);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
    max-width: 420px;
}

.brand-headline .teal {
    background: linear-gradient(135deg, var(--auth-teal), var(--auth-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    font-size: 16px;
    color: var(--auth-gray-400);
    line-height: 1.7;
    max-width: 380px;
}

/* Testimonial in left panel */
.brand-testimonial {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 28px;
    margin-top: auto;
}

.brand-quote {
    font-size: 16px;
    line-height: 1.7;
    color: var(--auth-gray-300);
    font-style: italic;
    margin-bottom: 20px;
}

.brand-quote::before {
    content: '"';
    font-size: 48px;
    font-weight: 800;
    color: var(--auth-teal);
    line-height: 0;
    vertical-align: -12px;
    margin-right: 4px;
    opacity: .6;
}

.brand-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--auth-teal), var(--auth-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.brand-author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-white);
}

.brand-author-role {
    font-size: 12px;
    color: var(--auth-gray-500);
}

/* ── Floating stat pills ── */
.brand-float-stats {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px;
    margin-top: 32px;
    margin-bottom: 32px;
}

.brand-stat-pill {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: 14px 18px;
    flex: 1;
    text-align: center;
}

.brand-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--auth-white);
    letter-spacing: -.5px;
}

.brand-stat-num .accent {
    color: var(--auth-teal);
}

.brand-stat-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--auth-gray-500);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── RIGHT PANEL — FORM ── */
.auth-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px;
    background: var(--auth-white);
    position: relative;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 420px;
}

.auth-form-header {
    margin-bottom: 36px;
}

.auth-form-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--auth-gray-900) !important;
    letter-spacing: -.5px;
    margin-bottom: 8px;
}

.auth-form-subtitle {
    font-size: 15px;
    color: var(--auth-gray-500);
    font-weight: 400;
}

/* Form fields */
.auth-field {
    margin-bottom: 20px;
}

.auth-field-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.auth-field-label span {
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-gray-700);
}

.auth-field-label a {
    font-size: 13px;
    font-weight: 500;
    color: var(--auth-teal);
    text-decoration: none;
}

.auth-field-label a:hover {
    color: var(--auth-teal-hover);
    text-decoration: underline;
}

.auth-input-wrap {
    position: relative;
}

.auth-input {
    width: 100%;
    height: 48px;
    border: 1.5px solid var(--auth-gray-200);
    border-radius: 10px;
    padding: 0 16px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
    color: var(--auth-gray-900);
    background: var(--auth-white);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.auth-input::placeholder {
    color: var(--auth-gray-400);
    font-weight: 400;
}

.auth-input:focus {
    border-color: var(--auth-teal);
    box-shadow: 0 0 0 3px rgba(14, 173, 196, .12);
}

.auth-input.error {
    border-color: #EF4444;
}

.auth-error-text {
    font-size: 13px;
    color: #EF4444;
    margin-top: 6px;
    font-weight: 500;
}

.auth-show-pw {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--auth-gray-400);
    transition: color .2s;
}

.auth-show-pw:hover {
    color: var(--auth-gray-700);
}

/* Remember me */
.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-teal);
    cursor: pointer;
}

.auth-remember label {
    font-size: 14px;
    color: var(--auth-gray-600);
    font-weight: 500;
    cursor: pointer;
}

/* Submit button */
.auth-submit-btn {
    width: 100%;
    height: 48px;
    background: var(--auth-teal);
    color: var(--auth-white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
    margin-bottom: 20px;
}

.auth-submit-btn:hover {
    background: var(--auth-teal-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(14, 173, 196, .3);
}

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

/* Footer links */
.auth-form-footer {
    text-align: center;
    font-size: 14px;
    color: var(--auth-gray-500);
}

.auth-form-footer a {
    color: var(--auth-teal);
    font-weight: 600;
    text-decoration: none;
}

.auth-form-footer a:hover {
    text-decoration: underline;
    color: var(--auth-teal-hover);
}

/* Back to home at bottom right */
.auth-back-home {
    position: absolute;
    bottom: 28px;
    right: 48px;
    font-size: 13px;
    color: var(--auth-gray-400);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color .2s;
}

.auth-back-home:hover {
    color: var(--auth-teal);
}

/* Recaptcha */
.auth-recaptcha {
    margin-bottom: 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .auth-brand-panel {
        flex: 0 0 40%;
        padding: 36px;
    }

    .brand-headline {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .auth-split {
        flex-direction: column;
    }

    .auth-brand-panel {
        flex: none;
        padding: 40px 24px 32px;
        min-height: auto;
    }

    .brand-headline {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .brand-subtitle {
        display: none;
    }

    .brand-testimonial {
        display: none;
    }

    .brand-float-stats {
        display: none;
    }

    .brand-logo {
        margin-bottom: 24px;
    }

    .auth-form-panel {
        padding: 32px 24px;
    }

    .auth-back-home {
        position: static;
        text-align: center;
        justify-content: center;
        margin-top: 20px;
    }
}