/**
 * BOBBY SMS - Modern Fintech Authentication Pages Design System
 * Primary Brand: #940489 | Font: Plus Jakarta Sans & Inter
 */

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

:root {
    --brand-primary: #940489;
    --brand-primary-hover: #7a0371;
    --brand-primary-light: #fbebf9;
    --brand-primary-soft: rgba(148, 4, 137, 0.08);
    --brand-primary-border: rgba(148, 4, 137, 0.22);
    --brand-primary-glow: 0 14px 35px -5px rgba(148, 4, 137, 0.38);
    --brand-gradient: linear-gradient(135deg, #940489 0%, #b805aa 55%, #6e0266 100%);
    --brand-gradient-dark: linear-gradient(145deg, #160214 0%, #2b0328 45%, #460440 100%);
    --brand-gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);

    --bg-page: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-input: #F8FAFC;
    --bg-input-focus: #FFFFFF;

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-white: #FFFFFF;

    --border-light: #E2E8F0;
    --border-focus: #940489;

    --success: #10B981;
    --success-light: #ECFDF5;
    --success-border: #A7F3D0;
    --warning: #F59E0B;
    --danger: #EF4444;
    --danger-light: #FEF2F2;
    --danger-border: #FECACA;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 16px 36px -6px rgba(148, 4, 137, 0.35);
}

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

body.auth-page {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Auth Layout Container */
.auth-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
}

/* Left: Form Column */
.auth-form-column {
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 40px;
    background-color: var(--bg-surface);
    position: relative;
    z-index: 2;
    overflow-y: auto;
}

/* Header with Logo and Back Link */
.auth-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 480px;
    margin: 0 auto 24px;
}

.auth-brand-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.auth-brand-logo:hover {
    transform: scale(1.02);
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.auth-back-link:hover {
    color: var(--brand-primary);
    border-color: var(--brand-primary-border);
    background: var(--brand-primary-light);
}

/* Main Form Card Wrapper */
.auth-form-card {
    width: 100%;
    max-width: 480px;
    margin: auto auto;
    padding: 10px 0;
}

.auth-heading-wrap {
    margin-bottom: 26px;
}

.text-center {
    text-align: center !important;
}

.auth-heading-wrap.text-center .auth-badge-pill {
    margin-left: auto;
    margin-right: auto;
}

.auth-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--brand-primary-border);
    margin-bottom: 12px;
}

.auth-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin-bottom: 8px;
}

.auth-title .gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Form Groups & Inputs */
.form-group-custom {
    margin-bottom: 18px;
}

.form-label-custom {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 7px;
}

.form-label-custom .required-star {
    color: var(--danger);
    margin-left: 2px;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-leading {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 15px;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 2;
}

.form-control-custom {
    width: 100%;
    height: 48px;
    background-color: var(--bg-input);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0 16px 0 44px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.form-control-custom::placeholder {
    color: #94A3B8;
    font-size: 14px;
}

.form-control-custom:focus {
    background-color: var(--bg-input-focus);
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(148, 4, 137, 0.12);
}

.input-icon-wrapper:focus-within .input-icon-leading {
    color: var(--brand-primary);
}

/* Password Toggle Button */
.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 2;
}

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

/* Password Strength & Match Helpers */
.password-strength-container {
    margin-top: 8px;
}

.strength-bar-track {
    height: 4px;
    background: #E2E8F0;
    border-radius: var(--radius-full);
    overflow: hidden;
    display: flex;
    gap: 4px;
}

.strength-segment {
    flex: 1;
    height: 100%;
    border-radius: var(--radius-full);
    background: #E2E8F0;
    transition: background 0.25s ease;
}

.strength-segment.active-weak {
    background: #EF4444;
}

.strength-segment.active-fair {
    background: #F59E0B;
}

.strength-segment.active-good {
    background: #3B82F6;
}

.strength-segment.active-strong {
    background: #10B981;
}

.strength-label-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
    font-weight: 500;
}

.password-match-hint {
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.password-match-hint.match {
    color: var(--success);
}

.password-match-hint.mismatch {
    color: var(--danger);
}

/* Remember & Forgot Row */
.auth-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: 13.5px;
}

.custom-checkbox-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    color: var(--text-secondary);
}

.custom-checkbox-wrap input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--brand-primary);
    cursor: pointer;
    border-radius: 4px;
}

.auth-forgot-link {
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-forgot-link:hover {
    color: var(--brand-primary-hover);
    text-decoration: underline;
}

/* Submit CTA Button */
.btn-auth-submit {
    width: 100%;
    height: 50px;
    background: var(--brand-gradient);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -6px rgba(148, 4, 137, 0.45);
}

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

.btn-auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Terms Notice for Register */
.auth-terms-note {
    font-size: 12.5px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 14px;
    line-height: 1.5;
}

.auth-terms-note a {
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-terms-note a:hover {
    text-decoration: underline;
}

/* Switch Page Row (Login <-> Register) */
.auth-switch-wrap {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-switch-link {
    font-weight: 700;
    color: var(--brand-primary);
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.auth-switch-link:hover {
    color: var(--brand-primary-hover);
    text-decoration: underline;
}

/* Trust Badges Footer */
.auth-footer-trust {
    width: 100%;
    max-width: 480px;
    margin: 20px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-badge-item i {
    color: var(--success);
    font-size: 13px;
}

/* Right: Showcase Column */
.auth-showcase-column {
    flex: 1.15;
    background: var(--brand-gradient-dark);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 64px;
    overflow: hidden;
    color: var(--text-white);
}

/* Ambient Background Lights & Grid */
.auth-showcase-column::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(184, 5, 170, 0.45) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-showcase-column::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(148, 4, 137, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.showcase-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
    pointer-events: none;
}

.showcase-content-wrap {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin: auto 0;
}

.showcase-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 22px;
}

.showcase-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.showcase-desc {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 34px;
}

/* Glassmorphic Live SMS Simulation Card */
.sms-simulation-card {
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    margin-bottom: 32px;
    transition: transform 0.3s ease;
}

.sms-simulation-card:hover {
    transform: translateY(-4px);
}

.sms-sim-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sms-sim-sender {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sms-sim-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 16px;
}

.sms-sim-name {
    font-weight: 700;
    font-size: 14.5px;
}

.sms-sim-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.22);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.sms-sim-badge .pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #34D399;
    animation: simPulse 1.5s infinite;
}

@keyframes simPulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.sms-sim-body {
    font-size: 13.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.sms-otp-display {
    display: inline-block;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2em;
    background: rgba(255, 255, 255, 0.16);
    padding: 6px 14px;
    border-radius: 8px;
    color: #FFFFFF;
    margin: 8px 0;
    border: 1px dashed rgba(255, 255, 255, 0.35);
}

.sms-sim-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 10px;
}

/* Feature Bullet Points */
.showcase-features-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.showcase-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(184, 5, 170, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FBEBF9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-text-wrap strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
}

.feature-text-wrap span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
}

/* Showcase Bottom Stats */
.showcase-bottom-stats {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item-block .stat-num {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

.stat-item-block .stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
    .auth-showcase-column {
        padding: 40px;
    }
    .showcase-title {
        font-size: 28px;
    }
}

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

    .auth-showcase-column {
        display: none; /* Hide heavy showcase on tablets & phones */
    }

    .auth-form-column {
        padding: 24px 20px;
        min-height: 100vh;
    }

    .auth-form-card {
        max-width: 100%;
        padding: 0;
    }

    .auth-top-bar {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .auth-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .auth-form-column {
        padding: 20px 16px;
    }

    .auth-top-bar {
        margin-bottom: 16px;
    }

    .auth-brand-logo {
        height: 36px;
    }

    .auth-back-link {
        padding: 6px 10px;
        font-size: 12px;
    }

    .auth-title {
        font-size: 22px;
    }

    .auth-options-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .auth-footer-trust {
        gap: 12px;
    }
}
