/* ============================================================
   GOZAAH — Auth Pages Shared Styles
   Matches existing signup/login design system:
   - Light #fafafa right panel
   - Gradient left panel (violet → pink → orange)
   - System font stack
   - White inputs, purple accent
   ============================================================ */

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --primary:        #7c3aed;
    --primary-light:  #8b5cf6;
    --primary-dark:   #6d28d9;
    --success:        #10b981;
    --error:          #ef4444;
    --info:           #3b82f6;
    --accent-yellow:  #fbbf24;

    --text-dark:      #111827;
    --text-mid:       #374151;
    --text-muted:     #6b7280;
    --text-light:     #9ca3af;

    --border-color:   #e5e7eb;
    --border-focus:   #8b5cf6;
    --bg-page:        #fafafa;
    --bg-white:       #ffffff;

    --left-gradient:  linear-gradient(135deg, #a78bfa 0%, #ec4899 50%, #fb923c 100%);
}

/* ── Split layout ──────────────────────────────────────────── */
.auth-wrapper {
    display: grid;
    grid-template-columns: 5fr 7fr;
    min-height: 100vh;
}

/* ── Left panel ────────────────────────────────────────────── */
.auth-left {
    background: var(--left-gradient);
    color: white;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

/* Left logo */
.left-logo {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.06em;
    color: white;
    text-decoration: none;
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

/* Left body text */
.left-body {
    position: relative;
    z-index: 1;
}

.left-body h2 {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 16px;
    color: white;
}

.left-body p {
    font-size: 0.9rem;
    opacity: 0.95;
    margin-bottom: 40px;
    color: white;
}

/* Social proof */
.social-proof {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.proof-avatars {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.proof-avatars .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid white;
    margin-right: -12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-muted);
    overflow: hidden;
    flex-shrink: 0;
}

.proof-avatars .avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.proof-avatars .avatar-count {
    background: white;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.proof-stars {
    color: var(--accent-yellow);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-top: 6px;
}

.proof-text {
    font-size: 0.85rem;
    opacity: 0.9;
    color: white;
}

/* ── Right panel ────────────────────────────────────────────── */
.auth-right {
    background: var(--bg-page);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* ── Logo (right side) ─────────────────────────────────────── */
.auth-logo {
    display: inline-block;
    background: var(--bg-white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    margin-bottom: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    text-decoration: none;
}

/* ── Headings ──────────────────────────────────────────────── */
.auth-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.25;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

/* ── Role badge ────────────────────────────────────────────── */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.role-badge.brand {
    background: rgba(251, 146, 60, 0.1);
    border-color: rgba(251, 146, 60, 0.3);
    color: #ea580c;
}

.role-badge.agency {
    background: rgba(13, 148, 136, 0.1);
    border-color: rgba(13, 148, 136, 0.3);
    color: #0d9488;
}

/* NOTE: added for the Manager static UI pass — indigo accent keeps this role
   visually distinct from Creator (purple), Brand (orange), Agency (teal). */
.role-badge.manager {
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.3);
    color: #4f46e5;
}

/* ── Alert banners ─────────────────────────────────────────── */
.auth-alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border: 1px solid transparent;
    line-height: 1.5;
}

.auth-alert i { flex-shrink: 0; margin-top: 1px; }

.auth-alert-error   { background: #fef2f2; border-color: #fecaca; color: #dc2626; }
.auth-alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #16a34a; }
.auth-alert-info    { background: #eff6ff; border-color: #bfdbfe; color: #2563eb; }

/* ── Google button ─────────────────────────────────────────── */
.btn-google {
    width: 100%;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-mid);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    font-family: inherit;
}

.btn-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.google-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Divider ───────────────────────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* ── Form elements ─────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-mid);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    display: block;
}

.form-control::placeholder { color: var(--text-light); }

.form-control:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-control.is-invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.field-error {
    font-size: 0.8rem;
    color: var(--error);
    margin-top: 4px;
}

/* ── Password wrapper ──────────────────────────────────────── */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    transition: color 0.2s;
}

.password-toggle:hover { color: var(--text-muted); }

/* ── Password requirements ─────────────────────────────────── */
.pw-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin-top: 12px;
    font-size: 0.85rem;
}

.pw-req {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.pw-req i {
    font-size: 0.7rem;
    flex-shrink: 0;
    transition: color 0.2s;
}

.pw-req.met   { color: var(--success); }
.pw-req.met i { color: var(--success); }

/* ── Primary button ────────────────────────────────────────── */
.btn-primary-auth {
    width: 100%;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    margin-top: 8px;
}

.btn-primary-auth:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

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

/* ── Ghost button (resend, back etc.) ──────────────────────── */
.btn-ghost {
    width: 100%;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-ghost:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: #faf5ff;
}

/* ── Remember me / checkbox row ────────────────────────────── */
.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.check-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Links ─────────────────────────────────────────────────── */
.auth-link-row {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 18px;
}

.auth-link-row a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-link-row a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

/* ── Footer ────────────────────────────────────────────────── */
.auth-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-footer a:hover { color: var(--text-muted); }

/* ── Join page (role selection) ────────────────────────────── */
.join-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: var(--bg-page);
}

.join-logo {
    display: inline-block;
    background: var(--bg-white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    margin-bottom: 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    text-decoration: none;
}

.join-heading {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.join-sub {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.join-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 640px;
}

.join-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 28px;
    text-decoration: none;
    color: var(--text-dark);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.join-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.12);
    color: var(--text-dark);
}

.join-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.join-card-icon.creator { background: rgba(139, 92, 246, 0.1); color: var(--primary-light); }
.join-card-icon.brand   { background: rgba(251, 146, 60, 0.1); color: #ea580c; }
.join-card-icon.agency  { background: rgba(13, 148, 136, 0.1); color: #0d9488; }
/* NOTE: added for the Manager static UI pass — same indigo accent as .role-badge.manager */
.join-card-icon.manager { background: rgba(79, 70, 229, 0.1); color: #4f46e5; }

.join-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
}

.join-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.55;
    margin: 0;
}

.join-card .join-arrow {
    margin-top: auto;
    color: var(--text-light);
    font-size: 1rem;
    transition: color 0.2s, transform 0.2s;
}

.join-card:hover .join-arrow {
    color: var(--primary-light);
    transform: translateX(4px);
}

.join-login-row {
    margin-top: 32px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.join-login-row a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
}

.join-login-row a:hover { text-decoration: underline; }

/* ── Verify notice page ────────────────────────────────────── */
.verify-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 48px 40px;
    text-align: center;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.verify-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-light);
    margin: 0 auto 24px;
}

.verify-card h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.verify-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.verify-email-badge {
    background: #faf5ff;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
    display: inline-block;
    margin-bottom: 24px;
    word-break: break-all;
}

.resend-form { margin-top: 20px; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 991px) {
    .auth-left  { padding: 40px 30px; }
    .auth-right { padding: 40px 30px; }
}

@media (max-width: 767px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
    }

    .auth-left { display: none; }

    .auth-right { padding: 40px 24px; }

    .join-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pw-requirements {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .auth-right  { padding: 32px 20px; }
    .verify-card { padding: 36px 24px; }
}



/* Entry status badges */
.entry-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 8px;
}

.entry-status-badge.pending  { background: #fef3c7; color: #d97706; }
.entry-status-badge.approved { background: #d1fae5; color: #059669; }
.entry-status-badge.declined { background: #fee2e2; color: #dc2626; }

/* Mobile sidebar — same block used across all creator pages */
.sidebar {
    transition: transform 0.3s ease;
}

.sidebar.open {
    transform: translateX(0) !important;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    width: 42px;
    height: 42px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1.3rem;
    color: #374151;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sidebar-close-btn {
    display: none;
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

body.sidebar-open { overflow: hidden; }

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar-toggle { display: flex; }
    .sidebar-close-btn { display: block; }
    .main-content { margin-left: 0; }
    .top-bar { padding-left: 70px; }
}