/* ============================================================
   AUTH PAGES — Premium split-screen layout
   Left: branded gradient panel with event visuals
   Right: clean form area (Google/Linear style)
   ============================================================ */

/* ----- Full-screen split layout ----- */
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
}

/* ----- Left branded panel ----- */
.auth-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 40%, #2d1b69 100%);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.04);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 400px;
}

.auth-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.auth-brand-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-brand-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* Decorative floating dots */
.auth-brand-decor {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.auth-decor-stat {
    text-align: center;
}

.auth-decor-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #a78bfa;
    margin-bottom: 0.25rem;
}

.auth-decor-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animated gradient orb */
.auth-brand-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: auth-float 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes auth-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* ----- Right form panel ----- */
.auth-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    background: #fff;
    overflow-y: auto;
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
}

.auth-form-container.auth-form-wide {
    max-width: 560px;
}

/* ----- Form header ----- */
.auth-form-header {
    margin-bottom: 2rem;
}

.auth-form-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.auth-form-header p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* ----- Modern input styling ----- */
.auth-field {
    margin-bottom: 1.25rem;
}

.auth-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}

.auth-field label .req {
    color: #ef4444;
    margin-left: 2px;
}

.auth-field input,
.auth-field select,
.auth-field textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    color: #111827;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.auth-field input::placeholder,
.auth-field textarea::placeholder {
    color: #9ca3af;
}

.auth-field input:hover,
.auth-field select:hover,
.auth-field textarea:hover {
    border-color: #d1d5db;
    background: #fff;
}

.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.auth-field .field-hint {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.auth-field .field-error {
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 0.25rem;
    display: none;
}

.auth-field input.has-error,
.auth-field select.has-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Two-column grid for side-by-side fields */
.auth-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* ----- Primary button ----- */
.auth-btn-primary {
    width: 100%;
    padding: 0.7rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    font-family: inherit;
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

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

.auth-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ----- Divider ----- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: #9ca3af;
    font-size: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* ----- Google / Social button ----- */
.auth-btn-google {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.auth-btn-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.auth-btn-google svg {
    flex-shrink: 0;
}

/* ----- Links row ----- */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.auth-links a {
    color: #6366f1;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}

.auth-links a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.auth-links + .auth-links {
    margin-top: 0.5rem;
}

/* ----- External registration buttons ----- */
.auth-ext-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.auth-ext-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-ext-link:hover {
    color: #374151;
    border-color: #d1d5db;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ----- Success state (vendor/artist registration) ----- */
.auth-success {
    text-align: center;
    padding: 2rem 0;
}

.auth-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.auth-success h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.auth-success p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.auth-success code {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: #4b5563;
    user-select: all;
}

/* ----- Mobile header (replaces full panel on small screens) ----- */
.auth-mobile-brand {
    display: none;
    text-align: center;
    padding: 1.5rem 1rem 0;
}

.auth-mobile-brand .auth-brand-logo {
    width: 48px;
    height: 48px;
    font-size: 1.125rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.auth-mobile-brand .auth-brand-name {
    font-size: 1.375rem;
    color: #111827;
    -webkit-text-fill-color: #111827;
    background: none;
}

/* ----- Form grid for vendor/artist ----- */
.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 0.75rem;
}

.auth-form-grid .auth-field-wide {
    grid-column: 1 / -1;
}

/* ----- Dark Mode ----- */
.theme-dark .auth-form-panel {
    background: #111827;
}

.theme-dark .auth-form-header h1 {
    color: #f9fafb;
}

.theme-dark .auth-form-header p {
    color: #9ca3af;
}

.theme-dark .auth-field label {
    color: #d1d5db;
}

.theme-dark .auth-field input,
.theme-dark .auth-field select,
.theme-dark .auth-field textarea {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

.theme-dark .auth-field input:hover,
.theme-dark .auth-field select:hover {
    border-color: #4b5563;
    background: #1f2937;
}

.theme-dark .auth-field input:focus,
.theme-dark .auth-field select:focus {
    border-color: #6366f1;
    background: #1f2937;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.theme-dark .auth-btn-google {
    background: #1f2937;
    border-color: #374151;
    color: #d1d5db;
}

.theme-dark .auth-btn-google:hover {
    background: #374151;
    border-color: #4b5563;
}

.theme-dark .auth-divider {
    color: #6b7280;
}

.theme-dark .auth-divider::before,
.theme-dark .auth-divider::after {
    background: #374151;
}

.theme-dark .auth-links {
    color: #9ca3af;
}

.theme-dark .auth-ext-link {
    background: #1f2937;
    border-color: #374151;
    color: #9ca3af;
}

.theme-dark .auth-ext-link:hover {
    background: #374151;
    border-color: #4b5563;
    color: #d1d5db;
}

.theme-dark .auth-mobile-brand .auth-brand-name {
    color: #f9fafb;
    -webkit-text-fill-color: #f9fafb;
}

.theme-dark .auth-success h3 {
    color: #f9fafb;
}

.theme-dark .auth-success p {
    color: #9ca3af;
}

.theme-dark .auth-success code {
    background: #1f2937;
    color: #d1d5db;
}

@media (prefers-color-scheme: dark) {
    :root:not(.theme-light) .auth-form-panel { background: #111827; }
    :root:not(.theme-light) .auth-form-header h1 { color: #f9fafb; }
    :root:not(.theme-light) .auth-form-header p { color: #9ca3af; }
    :root:not(.theme-light) .auth-field label { color: #d1d5db; }
    :root:not(.theme-light) .auth-field input,
    :root:not(.theme-light) .auth-field select,
    :root:not(.theme-light) .auth-field textarea { background: #1f2937; border-color: #374151; color: #f9fafb; }
    :root:not(.theme-light) .auth-field input:focus,
    :root:not(.theme-light) .auth-field select:focus { border-color: #6366f1; background: #1f2937; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }
    :root:not(.theme-light) .auth-btn-google { background: #1f2937; border-color: #374151; color: #d1d5db; }
    :root:not(.theme-light) .auth-divider { color: #6b7280; }
    :root:not(.theme-light) .auth-divider::before, :root:not(.theme-light) .auth-divider::after { background: #374151; }
    :root:not(.theme-light) .auth-links { color: #9ca3af; }
    :root:not(.theme-light) .auth-ext-link { background: #1f2937; border-color: #374151; color: #9ca3af; }
    :root:not(.theme-light) .auth-mobile-brand .auth-brand-name { color: #f9fafb; -webkit-text-fill-color: #f9fafb; }
}

/* ----- Responsive: stack on small screens ----- */
@media (max-width: 900px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-mobile-brand {
        display: block;
    }

    .auth-form-panel {
        padding: 1.5rem;
    }

    .auth-form-container {
        max-width: 100%;
    }

    .auth-form-container.auth-form-wide {
        max-width: 100%;
    }
}

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

    .auth-field-row {
        grid-template-columns: 1fr;
    }

    .auth-ext-links {
        flex-direction: column;
    }
}
