/* 
========================================================================
   CONTRIBUTOR PORTAL COMMON STYLES (Shared by Login, Register, Forgot Password)
========================================================================
*/

/* ── 1. Page Background ── */
body {
    background: var(--light-bg, #f8fafc);
    min-height: 100vh;
    padding-top: 70px;
}

/* ── 2. Structural Wrappers (Cards & Sections) ── */
.login-section, .reg-section, .fp-section {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: radial-gradient(ellipse at 60% 40%, rgba(59,130,246,0.07) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(139,92,246,0.05) 0%, transparent 60%),
                #f8fafc;
}

.login-wrapper, .reg-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 960px;
    width: 100%;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(15,23,42,0.10), 0 4px 16px rgba(15,23,42,0.06);
    overflow: hidden;
    animation: cardIn .5s cubic-bezier(.22,.61,.36,1) both;
}

.fp-card {
    background:#fff; border:1px solid #e2e8f0; border-radius:22px;
    padding:2.5rem 2.2rem; width:100%; max-width:440px;
    box-shadow:0 10px 40px rgba(15,23,42,.08);
    animation:cardIn .5s cubic-bezier(.22,.61,.36,1) both;
}

@keyframes cardIn {
    from { opacity:0; transform:translateY(24px) scale(.98); }
    to   { opacity:1; transform:translateY(0)   scale(1); }
}

/* ── 3. Left Split Branding Panel (Login & Register) & Banner (Forgot Password) ── */
.login-left, .reg-left, .fp-banner {
    background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 60%, #0f172a 100%);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.fp-banner {
    padding: 2.2rem 0;
    text-align: center;
    display: block;
}

/* Decorative circles behind branding panel */
.login-left::before, .reg-left::before {
    content: '';
    position: absolute;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,.18) 0%, transparent 70%);
    top: -80px; right: -80px;
}
.login-left::after {
    content: '';
    position: absolute;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,.14) 0%, transparent 70%);
    bottom: -60px; left: -40px;
}
.reg-left::before {
    background: radial-gradient(circle, rgba(99,102,241,.2) 0%, transparent 70%);
}

/* Branding Content elements */
.brand-logo, .reg-left-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem; font-weight: 800;
    color: #fff; text-decoration: none;
    letter-spacing: -0.02em;
    position: relative; z-index: 1;
    display: block;
}
.brand-logo span, .reg-left-logo span { color: #3b82f6; }

.left-content, .reg-left-content { position: relative; z-index: 1; }

.left-tag, .reg-tag {
    display: inline-block;
    background: rgba(59,130,246,.2);
    border: 1px solid rgba(59,130,246,.35);
    color: #93c5fd;
    font-size: .75rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    padding: .35rem .9rem; border-radius: 50px;
    margin-bottom: 1.4rem;
}
.reg-tag {
    background: rgba(139,92,246,.2);
    border: 1px solid rgba(139,92,246,.35);
    color: #c4b5fd;
}

.left-headline, .reg-headline {
    font-family: 'Outfit', sans-serif;
    font-size: 1.9rem; font-weight: 800;
    color: #fff; line-height: 1.2;
    margin-bottom: 1rem;
}
.left-headline em, .reg-headline em {
    font-style: normal;
    background: linear-gradient(90deg, #3b82f6, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.reg-headline em {
    background: linear-gradient(90deg, #818cf8, #3b82f6);
}

.left-desc, .reg-desc {
    color: #94a3b8; font-size: .92rem; line-height: 1.65;
    margin-bottom: 2rem;
}

/* Perks list & Benefit lists */
.perk-list, .benefit-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.perk-item, .benefit-item {
    display: flex; align-items: center; gap: .75rem;
    color: #cbd5e1; font-size: .88rem;
}
.perk-icon, .benefit-icon {
    width: 30px; height: 30px; border-radius: 8px;
    background: rgba(59,130,246,.15);
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem; flex-shrink: 0;
}
.benefit-icon {
    background: rgba(99,102,241,.15);
}

.left-footer, .reg-left-footer { position: relative; z-index: 1; }
.left-footer p, .reg-left-footer p { color: #475569; font-size: .78rem; margin: 0 0 .5rem 0; }
.category-chips, .chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; }
.chip {
    padding: .22rem .65rem; border-radius: 50px;
    border: 1px solid rgba(148,163,184,.25);
    color: #64748b; font-size: .75rem; font-weight: 600;
}

/* ── 4. Form Panels & Header Layouts ── */
.login-right, .reg-right {
    padding: 3rem 2.8rem;
    display: flex; flex-direction: column; justify-content: center;
}

.form-header, .reg-form-sub { margin-bottom: 2rem; }
.form-header h1, .reg-form-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem; font-weight: 800;
    color: #0f172a; margin-bottom: .4rem;
}
.form-header p, .reg-form-sub { color: #64748b; font-size: .9rem; margin: 0; }

/* Form inputs & fields */
.field-group, .fg { margin-bottom: 1.3rem; }
.field-label, .fl {
    display: block; font-size: .78rem; font-weight: 700;
    color: #475569; margin-bottom: .45rem;
    text-transform: uppercase; letter-spacing: .06em;
}
.field-wrap, .pw-wrap { position: relative; }
.field-icon {
    position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 1rem; pointer-events: none;
    display: flex; align-items: center;
}

.field-input, .fi {
    width: 100%; padding: .8rem 1rem .8rem 2.6rem;
    border: 1.5px solid #e2e8f0; border-radius: 10px;
    font-family: 'Inter', sans-serif; font-size: .92rem; color: #0f172a;
    background: #f8fafc;
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
}
.fi {
    padding: .75rem 1rem;
}
.field-input:focus, .fi:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
    background: #fff;
}
.fi:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.field-input::placeholder, .fi::placeholder { color: #94a3b8; }

/* Toggle password triggers */
.pw-toggle, .toggle-pw {
    position: absolute; right: .9rem; top: 50%; transform: translateY(-50%);
    cursor: pointer; color: #94a3b8; border: none; background: none;
    padding: 0; display: flex; align-items: center;
    transition: color .2s;
}
.pw-toggle:hover, .toggle-pw:hover { color: #3b82f6; }

/* ── 5. Error & Success Notifications ── */
.error-alert, .alert-box {
    background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px;
    padding: .75rem 1rem; margin-bottom: 1.2rem;
    display: flex; align-items: center; gap: .6rem;
    font-size: .88rem; color: #dc2626; font-weight: 500;
}
.alert-success {
    background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534;
}
.error-alert svg, .alert-box svg { flex-shrink: 0; }

/* ── 6. Action Triggers & Link Elements ── */
.btn-login, .btn-register, .btn-primary, .btn-go {
    width: 100%; padding: .88rem;
    background: linear-gradient(135deg, #1e40af, #3b82f6 60%, #2563eb);
    background-size: 200% auto;
    border: none; border-radius: 11px; color: #fff;
    font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700;
    cursor: pointer; transition: background-position .4s, transform .2s, box-shadow .2s;
    letter-spacing: .01em;
    text-align: center;
    text-decoration: none;
}
.btn-register {
    background: linear-gradient(135deg, #4f46e5, #6366f1 60%, #818cf8);
}
.btn-go {
    display: inline-block; width: auto; padding: .8rem 2rem;
}
.btn-login:hover, .btn-register:hover, .btn-primary:hover, .btn-go:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,.35);
}
.btn-register:hover {
    box-shadow: 0 8px 24px rgba(99,102,241,.35);
}

/* Or Dividers */
.or-divider, .or-line {
    display: flex; align-items: center; gap: .8rem;
    margin: 1.5rem 0; color: #94a3b8; font-size: .82rem;
}
.or-divider::before, .or-divider::after, .or-line::before, .or-line::after {
    content: ''; flex: 1; height: 1px; background: #e2e8f0;
}

/* Redirections */
.register-cta, .login-cta {
    text-align: center;
    padding: 1rem;
    background: #f8fafc; border-radius: 11px;
    border: 1px solid #e2e8f0;
    color: #64748b; font-size: .88rem;
}
.register-cta a, .login-cta a {
    color: #3b82f6; font-weight: 700; text-decoration: none;
}
.login-cta a { color: #6366f1; }
.register-cta a:hover, .login-cta a:hover { text-decoration: underline; }

.back-link {
    display: inline-flex; align-items: center; gap: .3rem;
    color: #64748b; font-size: .82rem; text-decoration: none;
    margin-top: 1.2rem; transition: color .2s;
}
.back-link:hover { color: #3b82f6; }

/* ── 7. Forgot Password Page Specific Extensions ── */
.steps { display:flex; align-items:center; justify-content:center; gap:.4rem; margin-bottom:2rem; }
.step-dot {
    width:8px; height:8px; border-radius:50%; background:#e2e8f0;
    transition:all .3s;
}
.step-dot.active { background:#3b82f6; width:24px; border-radius:4px; }
.step-dot.done   { background:#22c55e; }

.fp-icon { font-size:2.8rem; text-align:center; margin-bottom:1rem; }
.fp-title { font-family:'Outfit',sans-serif;font-size:1.5rem;font-weight:800;color:#0f172a;margin-bottom:.35rem; text-align:center; }
.fp-sub { color:#64748b;font-size:.88rem;text-align:center;margin-bottom:1.8rem;line-height:1.6; }

.otp-input {
    font-size:1.6rem; font-weight:700; text-align:center; letter-spacing:.4em;
    padding:.8rem 1rem;
}
.pw-wrap .fi { margin-bottom:0; }

.success-big { text-align:center; padding:1rem 0; }
.success-big .si { font-size:3.5rem; margin-bottom:.8rem; }
.success-big h2 { font-family:'Outfit',sans-serif; font-size:1.5rem; font-weight:800; color:#0f172a; margin-bottom:.5rem; }
.success-big p { color:#64748b; font-size:.9rem; margin-bottom:1.5rem; }

.otp-note {
    background:#eff6ff; border:1px solid #bfdbfe; border-radius:10px;
    padding:.75rem 1rem; color:#1e40af; font-size:.82rem; margin-bottom:1.3rem;
}

/* ── 8. Mobile Responsiveness ── */
@media (max-width: 700px) {
    .login-wrapper, .reg-wrapper { grid-template-columns: 1fr; }
    .login-left, .reg-left { padding: 2rem 1.8rem; }
    .left-headline, .reg-headline { font-size: 1.5rem; }
    .perk-list, .benefit-list { display: none; }
    .login-right, .reg-right { padding: 2rem 1.8rem; }
}

@media (max-width: 480px) {
    .field-row { grid-template-columns: 1fr; }
}
