/* =========================================================
   Paisa Garage - Modern Split-Screen Auth (Login & Register)
   ========================================================= */

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

:root {
    --pg-primary: #ff0066;
    --pg-primary-hover: #e0005a;
    --pg-primary-light: #fff0f5;
    --pg-secondary: #7c5cdb;
    --pg-dark: #0f172a;
    --pg-card-dark: #1e293b;
    --pg-gray-50: #f8fafc;
    --pg-gray-100: #f1f5f9;
    --pg-gray-200: #e2e8f0;
    --pg-gray-400: #94a3b8;
    --pg-gray-600: #475569;
    --pg-gray-700: #334155;
    --pg-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --pg-shadow-brand: 0 12px 28px -5px rgba(255, 0, 102, 0.35);
}

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

body.auth-body {
    font-family: var(--pg-font);
    background-color: var(--pg-dark);
    color: var(--pg-gray-700);
    line-height: 1.6;
    min-height: 100vh;
}

.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ================= LEFT SIDE (SHOWCASE & MATTER) ================= */
.auth-left {
    flex: 1.15;
    background: radial-gradient(circle at 15% 15%, rgba(255, 0, 102, 0.18) 0%, transparent 40%),
                radial-gradient(circle at 85% 85%, rgba(124, 92, 219, 0.2) 0%, transparent 40%),
                linear-gradient(150deg, #090d16 0%, #0f172a 60%, #161a2e 100%);
    color: #ffffff;
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 102, 0.15) 0%, transparent 70%);
    top: -80px;
    left: -80px;
    pointer-events: none;
}

.auth-left-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.auth-brand-logo {
    background: #ffffff;
    padding: 8px 18px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.auth-brand-logo img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-back-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(-2px);
}

.auth-left-content {
    position: relative;
    z-index: 2;
    margin: auto 0;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(255, 0, 102, 0.15);
    border: 1px solid rgba(255, 0, 102, 0.35);
    color: #ff4d94;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 22px;
}

.auth-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff0066;
    box-shadow: 0 0 10px #ff0066;
}

.auth-left-title {
    font-size: 40px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.auth-left-title span {
    background: linear-gradient(135deg, #ff0066 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-left-desc {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.6;
    max-width: 520px;
    margin-bottom: 36px;
}

/* Feature Bullets */
.auth-features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 20px;
    border-radius: 14px;
    transition: all 0.25s ease;
}

.auth-feature-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 0, 102, 0.3);
    transform: translateX(4px);
}

.auth-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 0, 102, 0.2) 0%, rgba(124, 92, 219, 0.2) 100%);
    color: #ff3385;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 0, 102, 0.25);
}

.auth-feature-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.auth-feature-text p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.4;
}

/* Trust / Stat Footer Card */
.auth-left-footer {
    position: relative;
    z-index: 2;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-trust-card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-avatars-group {
    display: flex;
}

.auth-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin-left: -8px;
    color: #fff;
}

.auth-avatar:first-child {
    margin-left: 0;
}

.auth-avatar-1 { background: #ff0066; }
.auth-avatar-2 { background: #3b82f6; }
.auth-avatar-3 { background: #10b981; }

.auth-trust-meta {
    font-size: 13px;
    color: #e2e8f0;
}

.auth-trust-meta strong {
    color: #ffffff;
    display: block;
}

.auth-rating-stars {
    color: #f59e0b;
    font-size: 14px;
}

/* ================= RIGHT SIDE (FORM) ================= */
.auth-right {
    flex: 0.95;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 56px;
    position: relative;
    overflow-y: auto;
}

.auth-right-mobile-header {
    display: none;
    width: 100%;
    margin-bottom: 24px;
    align-items: center;
    justify-content: space-between;
}

.auth-box {
    width: 100%;
    max-width: 440px;
    margin: auto 0;
}

.auth-box.register-box-wide {
    max-width: 480px;
}

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

.auth-form-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--pg-dark);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.auth-form-subtitle {
    font-size: 14px;
    color: var(--pg-gray-600);
}

/* Alerts */
.pg-alert {
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.pg-alert-error {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    color: #991b1b;
}

.pg-alert-success {
    background: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    color: #065f46;
}

.pg-alert-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.pg-alert-error .pg-alert-icon {
    background: #ef4444;
    color: #ffffff;
}

.pg-alert-success .pg-alert-icon {
    background: #10b981;
    color: #ffffff;
}

/* Form Controls */
.auth-form-group {
    margin-bottom: 18px;
}

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--pg-gray-700);
    margin-bottom: 6px;
}

.auth-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    color: var(--pg-gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.auth-input-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.auth-input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    border-radius: 10px;
    border: 1.5px solid var(--pg-gray-200);
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    color: var(--pg-dark);
    outline: none;
    transition: all 0.2s ease;
}

.auth-input:focus {
    border-color: var(--pg-primary);
    box-shadow: 0 0 0 4px rgba(255, 0, 102, 0.12);
}

.auth-password-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--pg-gray-400);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.auth-password-toggle:hover {
    color: var(--pg-dark);
}

/* Grid for 2-column fields in registration */
.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--pg-primary) 0%, #ff3385 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--pg-shadow-brand);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, var(--pg-primary-hover) 0%, #ff1a75 100%);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -6px rgba(255, 0, 102, 0.45);
}

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

/* Auth Switch Footer */
.auth-switch {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--pg-gray-600);
}

.auth-switch a {
    color: var(--pg-primary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Demo Credentials Pill */
.auth-demo-card {
    margin-top: 24px;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--pg-gray-50);
    border: 1px dashed var(--pg-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.auth-demo-text strong {
    color: var(--pg-dark);
    display: block;
    margin-bottom: 2px;
}

.auth-demo-text span {
    color: var(--pg-gray-600);
}

.auth-demo-btn {
    padding: 6px 12px;
    background: #ffffff;
    border: 1.5px solid var(--pg-gray-200);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--pg-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-demo-btn:hover {
    background: var(--pg-primary-light);
    border-color: var(--pg-primary);
}

/* Visual Mockup Card on Left Side */
.auth-preview-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 20px;
    margin-top: 24px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.auth-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff0066 0%, #7c5cdb 100%);
}

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

.auth-preview-title {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-preview-status {
    font-size: 11px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 3px 10px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.auth-preview-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.auth-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-preview-item {
    background: rgba(15, 23, 42, 0.6);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-preview-item small {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.auth-preview-item strong {
    font-size: 14px;
    color: #ffffff;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-left {
        padding: 44px 36px;
    }
    .auth-right {
        padding: 40px 32px;
    }
    .auth-left-title {
        font-size: 32px;
    }
}

@media (max-width: 860px) {
    .auth-wrapper {
        flex-direction: column;
    }
    .auth-left {
        padding: 40px 24px;
        min-height: auto;
    }
    .auth-left-content {
        margin: 20px 0;
    }
    .auth-left-title {
        font-size: 28px;
    }
    .auth-left-desc {
        font-size: 14px;
        margin-bottom: 24px;
    }
    .auth-features-list {
        margin-bottom: 24px;
    }
    .auth-right {
        padding: 40px 24px;
        border-radius: 24px 24px 0 0;
        margin-top: -24px;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    }
    .auth-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
