/* ============================================
   ALDON RADAR - Auth Pages
   Matches mockup: full-panel marketing, huge stats, radar bg
   ============================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    background: #030a0a;
    position: relative;
    overflow: hidden;
}

/* ── BACKGROUND ── */
.bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 80% at 20% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 60% at 80% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #030a0a 0%, #061212 100%);
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.orb-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
    left: 15%; top: 25%;
    animation: float1 15s ease-in-out infinite;
}

.orb-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    right: 30%; bottom: 20%;
    animation: float2 20s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ============================================
   MARKETING SECTION — 60% de la page
   ============================================ */
.marketing-section {
    flex: 1.4;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Radar en fond — décalé vers la droite comme le mockup */
.radar-bg-mode {
    position: absolute;
    top: 45%;
    left: 60%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    pointer-events: none;
}

.radar-wrapper {
    position: relative;
    width: 80vh;
    height: 80vh;
    max-width: 680px;
    max-height: 680px;
}

.radar-bg-mode .radar-glow { inset: -80px; }
.radar-bg-mode .radar-svg { width: 100%; height: 100%; }
.radar-bg-mode .sweep-container { inset: 20px; }
.radar-bg-mode .blips { inset: 20px; }

/* Contenu marketing — absolute, marges haut/bas de sécurité */
.marketing-content {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    bottom: 24px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 16px 48px 20px 48px;
    overflow: hidden;
}

/* ── Logo en haut ── */
.auth-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.logo-circle {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: white;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.4);
}

.logo-name {
    font-size: 20px;
    font-weight: 600;
    color: white;
    letter-spacing: -0.02em;
}

.auth-logo-mobile {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

/* ── Corps : centré verticalement ── */
.marketing-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding: 10px 0;
}

/* Badge */
.marketing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--accent-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-primary);
    letter-spacing: 0.3px;
    margin-bottom: 20px;
    width: fit-content;
    animation: fadeUp 0.5s ease-out 0.1s backwards;
}

.badge-dot {
    width: 7px; height: 7px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Titre — très grand comme le mockup */
.marketing-title {
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -2px;
    color: white;
    margin-bottom: 14px;
    animation: fadeUp 0.5s ease-out 0.2s backwards;
}

.title-accent {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sous-titre */
.marketing-sub {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-weight: 400;
    animation: fadeUp 0.5s ease-out 0.3s backwards;
}

/* Values */
.marketing-values {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeUp 0.5s ease-out 0.4s backwards;
}

.value-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.value-icon {
    width: 42px; height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
}

.vi-green  { background: rgba(16, 185, 129, 0.15); color: var(--accent-primary); }
.vi-blue   { background: rgba(59, 130, 246, 0.15);  color: var(--info); }
.vi-purple { background: rgba(139, 92, 246, 0.15);  color: #a78bfa; }

.value-row strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 3px;
}

.value-row span {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Stats en bas — TRÈS GRANDES comme le mockup ── */
.marketing-stats {
    display: flex;
    gap: 56px;
    flex-shrink: 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    animation: fadeUp 0.5s ease-out 0.5s backwards;
}

.mstat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mstat-val {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    color: white;
    letter-spacing: -2px;
    line-height: 1;
}

.mstat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

/* ============================================
   RADAR ANIMATIONS
   ============================================ */
.radar-glow {
    position: absolute;
    inset: -60px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 60%);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.radar-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.grid-line {
    stroke: rgba(16, 185, 129, 0.12);
    stroke-width: 1;
}

.radar-ring {
    fill: none;
    stroke: rgba(16, 185, 129, 0.25);
    stroke-width: 1;
}

.sweep-container {
    position: absolute;
    inset: 25px;
    border-radius: 50%;
    overflow: hidden;
}

.sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 50%;
    transform-origin: 0 0;
    animation: radarSweep 4s linear infinite;
}

.sweep::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 200%; height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(16, 185, 129, 0.5) 40deg,
        rgba(16, 185, 129, 0.25) 80deg,
        transparent 120deg
    );
    transform: translate(-50%, -50%);
}

@keyframes radarSweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.radar-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.pulse-ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 40px; height: 40px;
    border: 2px solid rgba(16, 185, 129, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.center-dot {
    width: 16px; height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981, 0 0 20px rgba(16,185,129,0.8), 0 0 40px rgba(16,185,129,0.4);
    position: relative;
    z-index: 2;
}

.blips {
    position: absolute;
    inset: 25px;
}

.blip {
    position: absolute;
    width: 8px; height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.9);
    animation: blipBlink 3s ease-in-out infinite;
}

.blip.sm { width: 5px; height: 5px; }

.b1 { top: 20%; left: 30%; animation-delay: 0s; }
.b2 { top: 35%; left: 18%; animation-delay: 0.3s; }
.b3 { top: 55%; left: 25%; animation-delay: 0.6s; }
.b4 { top: 25%; left: 50%; animation-delay: 0.9s; }
.b5 { top: 65%; left: 45%; animation-delay: 1.2s; }
.b6 { top: 40%; left: 65%; animation-delay: 1.5s; }
.b9 { top: 32%; left: 40%; animation-delay: 0.4s; }
.b10 { top: 45%; left: 35%; animation-delay: 0.8s; }

@keyframes blipBlink {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ============================================
   FORM SECTION — 40% de la page
   ============================================ */
.form-section {
    flex: 0 0 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    position: relative;
    z-index: 10;
    background: rgba(6, 10, 18, 0.7);
    border-left: 1px solid rgba(255,255,255,0.05);
}

.auth-card {
    width: 100%;
    max-width: 380px;
    background: rgba(10, 20, 20, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: var(--radius-lg);
    padding: 36px;
    animation: fadeUp 0.5s ease-out 0.15s backwards;
}

.auth-card h1 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0 0 4px;
    text-align: center;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.auth-footer {
    position: absolute;
    bottom: 24px;
    left: 0; right: 0;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ── FORM ELEMENTS ── */
.form-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    color: #f87171;
    font-size: 14px;
    margin-bottom: 20px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: white;
    font-size: 14px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-input::placeholder { color: var(--text-muted); }

.input-wrapper { position: relative; }
.input-wrapper .form-input { padding-right: 48px; }

.toggle-btn {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--text-muted);
    cursor: pointer; padding: 4px;
    transition: color 0.2s;
}

.toggle-btn:hover { color: var(--accent-primary); }

.btn-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 4px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 12px;
}

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

.divider span { padding: 0 14px; white-space: nowrap; }

.social-btns { display: flex; gap: 12px; }

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-social .fa-google { color: #ea4335; }
.btn-social .fa-linkedin-in { color: #0a66c2; }

.switch-auth {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 13px;
}

.switch-auth a {
    color: var(--accent-primary);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.switch-auth a:hover { color: #34d399; text-decoration: underline; }

.password-strength { margin-top: 8px; }

.strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill { height: 100%; transition: all 0.3s; }
.strength-fill.weak   { width: 25%;  background: var(--danger); }
.strength-fill.fair   { width: 50%;  background: var(--warning); }
.strength-fill.good   { width: 75%;  background: var(--info); }
.strength-fill.strong { width: 100%; background: var(--success); }

.strength-text { font-size: 12px; color: var(--text-muted); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .marketing-section { display: none; }
    .form-section { flex: 1; border-left: none; }
    .auth-page { justify-content: center; }
    .auth-logo-mobile { display: flex; }
    .form-section { padding: 24px; }
}

@media (max-width: 480px) {
    .auth-card { padding: 28px 20px; border-radius: var(--radius-md); }
    .auth-card h1 { font-size: 22px; }
    .social-btns { flex-direction: column; }
}
