﻿/* ============================================
   ALVI - Auth / Landing  v2
   Refined dark landing, clean form overlays
   ============================================ */

/* ── Landing page ── */
.landing {
    min-height: 100vh;
    background: var(--dark);
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
}
.landing::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 20% 30%, rgba(201,168,76,.06) 0%, transparent 100%),
        radial-gradient(ellipse 60% 40% at 80% 70%, rgba(201,168,76,.04) 0%, transparent 100%);
    pointer-events: none;
}

/* ── Landing header ── */
.landing-header {
    display: flex; align-items: center; justify-content: center;
    padding: var(--space-8) var(--space-6);
    position: relative; z-index: 1;
}
.landing-logo { height: 48px; filter: drop-shadow(0 2px 8px rgba(201,168,76,.25)); }
.landing-brand {
    display: flex; align-items: center; gap: var(--space-3);
    text-decoration: none;
}
.landing-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.landing-brand-text span:first-child {
    font-family: var(--font-display); font-size: var(--text-2xl);
    font-weight: 800; color: var(--gold);
}
.landing-brand-text span:last-child {
    font-size: 10px; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    color: rgba(255,255,255,.3);
}

/* ── Hero ── */
.landing-hero {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: var(--space-4) var(--space-6) var(--space-12);
    position: relative; z-index: 1;
}
.landing-content { width: 100%; max-width: 1060px; }
.landing-tagline {
    text-align: center; margin-bottom: var(--space-10);
    animation: slideUp .5s var(--ease) both;
}
.landing-tagline h1 {
    font-family: var(--font-display); font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800; color: var(--white); line-height: 1.2;
    margin-bottom: var(--space-3); letter-spacing: -0.02em;
}
.landing-tagline h1 .gold { color: var(--gold); }
.landing-tagline p {
    font-size: var(--text-base); color: rgba(255,255,255,.4);
    max-width: 480px; margin: 0 auto; line-height: 1.6;
}

/* ── Landing cards ── */
.landing-cards {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    animation: slideUp .6s var(--ease) .1s both;
}
.landing-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-2xl);
    padding: var(--space-8) var(--space-5);
    text-align: center; cursor: pointer;
    transition: all .35s var(--ease);
    position: relative; overflow: hidden;
}
.landing-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,.07);
    border-color: rgba(201,168,76,.3);
    box-shadow: 0 20px 48px rgba(0,0,0,.3);
}
.landing-card.active {
    border-color: var(--gold);
    background: rgba(201,168,76,.06);
    box-shadow: 0 0 0 1px var(--gold), 0 20px 48px rgba(0,0,0,.3);
}
.landing-card-icon {
    font-size: 44px; margin-bottom: var(--space-4);
    display: block; position: relative; z-index: 1;
}
.landing-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg); font-weight: 700;
    color: var(--white); margin-bottom: var(--space-2);
}
.landing-card p {
    font-size: var(--text-sm); color: rgba(255,255,255,.35);
    line-height: 1.6;
}
.landing-card-arrow {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: var(--radius-full);
    background: rgba(201,168,76,.1); color: var(--gold);
    margin-top: var(--space-4); font-size: 18px;
    transition: all .3s var(--ease);
}
.landing-card:hover .landing-card-arrow {
    background: var(--gold); color: var(--dark);
    transform: translateX(3px);
}

/* ── Form panel overlay ── */
.landing-form-wrapper {
    position: fixed; inset: 0; z-index: var(--z-overlay);
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
    padding: var(--space-4);
    animation: fadeIn .2s var(--ease);
}
.landing-form-panel {
    background: var(--white); border-radius: var(--radius-2xl);
    width: 100%; max-width: 760px; max-height: 92vh; overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,.5);
    animation: formSlideIn .35s var(--ease-spring);
}
.landing-form-panel.closing {
    animation: formSlideOut .25s var(--ease) forwards;
}
@keyframes formSlideIn {
    from { opacity: 0; transform: scale(.95) translateY(24px); }
    to   { opacity: 1; transform: none; }
}
@keyframes formSlideOut {
    to { opacity: 0; transform: scale(.96) translateY(20px); }
}

/* ── Form header ── */
.form-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--space-5) var(--space-7);
    background: var(--gray-900);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}
.form-panel-header h2 {
    font-family: var(--font-display); color: var(--gold);
    font-size: var(--text-xl); font-weight: 700;
}
.form-panel-close {
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    border: none; border-radius: var(--radius-full);
    background: rgba(255,255,255,.08); color: rgba(255,255,255,.5);
    font-size: 18px; cursor: pointer; transition: all var(--transition);
}
.form-panel-close:hover { background: rgba(255,255,255,.15); color: var(--white); }

/* ── Form body ── */
.form-panel-body { padding: var(--space-6) var(--space-7) var(--space-7); }
.form-compact-row {
    display: grid; gap: var(--space-4);
    grid-template-columns: 1fr 1fr;
}
.form-compact-row-3 {
    display: grid; gap: var(--space-4);
    grid-template-columns: repeat(3, 1fr);
}
.form-full { grid-column: 1 / -1; }

/* ── Section label ── */
.form-section-label {
    grid-column: 1 / -1;
    display: flex; align-items: center; gap: var(--space-3);
    font-size: var(--text-xs); font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    color: var(--gold-dark); margin: var(--space-2) 0 0;
}
.form-section-label::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, var(--gray-200), transparent);
}

/* ── Actions ── */
.form-panel-actions {
    display: flex; gap: var(--space-3); justify-content: center;
    padding-top: var(--space-5); border-top: 1px solid var(--gray-100);
    margin-top: var(--space-5); grid-column: 1 / -1;
}
.form-panel-actions .btn { min-width: 180px; }

/* ── Form switch ── */
.form-switch {
    text-align: center; padding: var(--space-4) var(--space-7);
    background: var(--gray-50); border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
    font-size: var(--text-sm); color: var(--gray-500);
}
.form-switch a, .form-switch button {
    color: var(--gold-dark); font-weight: 700; cursor: pointer;
    background: none; border: none; text-decoration: underline;
    text-underline-offset: 2px;
}
.form-switch a:hover, .form-switch button:hover { color: var(--gold); }

/* ── Registration success ── */
.registration-success {
    text-align: center; padding: var(--space-10) var(--space-6);
}
.registration-success .success-icon {
    font-size: 64px; margin-bottom: var(--space-5);
    animation: scaleIn .5s var(--ease-spring);
}
.registration-success h3 {
    font-family: var(--font-display); font-size: var(--text-2xl);
    color: var(--gray-900); margin-bottom: var(--space-3);
}
.registration-success p {
    color: var(--gray-500); line-height: 1.7;
    max-width: 400px; margin: 0 auto var(--space-6);
}

/* ── Landing footer ── */
.landing-footer {
    text-align: center; padding: var(--space-6);
    color: rgba(255,255,255,.2); font-size: var(--text-xs);
    position: relative; z-index: 1;
}
.landing-footer a { color: rgba(201,168,76,.45); font-weight: 600; }
.landing-footer a:hover { color: var(--gold); }

/* ── Decorative particles ── */
.landing-particle {
    position: absolute; border-radius: var(--radius-full);
    background: var(--gold); opacity: .03;
    pointer-events: none; animation: float 8s ease-in-out infinite;
}
.landing-particle:nth-child(1) { width: 280px; height: 280px; top: 10%; left: -80px; }
.landing-particle:nth-child(2) { width: 180px; height: 180px; bottom: 15%; right: -60px; animation-delay: 2.5s; }
.landing-particle:nth-child(3) { width: 140px; height: 140px; top: 50%; left: 60%; animation-delay: 5s; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .landing-cards { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; gap: var(--space-3); }
    .landing-card { padding: var(--space-5); }
    .form-compact-row { grid-template-columns: 1fr; }
    .form-compact-row-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .landing-header { padding: var(--space-5) var(--space-4); }
    .landing-hero { padding: var(--space-2) var(--space-4) var(--space-8); }
    .form-panel-header { padding: var(--space-4) var(--space-5); }
    .form-panel-body { padding: var(--space-4) var(--space-5) var(--space-5); }
    .form-switch { padding: var(--space-3) var(--space-5); }
    .landing-tagline h1 { font-size: var(--text-2xl); }
}
