/* ============================================================
   Uppilot Studio IA — assets/css/login.css
   Styles spécifiques à la page de connexion
   ============================================================ */

body.login-page {
    display: flex;
    overflow: hidden;
    background: #0D3D2E;
    min-height: 100vh;
}

/* ══════════════════════════════════════════════════════════════
   PARTIE GAUCHE
══════════════════════════════════════════════════════════════ */
.page-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px 48px;
    position: relative;
    overflow: hidden;
}

/* Décorations */
.deco-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(29,158,117,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29,158,117,0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.deco-circle { position: absolute; border-radius: 50%; pointer-events: none; }
.deco-c1 { width: 560px; height: 560px; top: -200px; left: -140px; background: rgba(29,158,117,0.07); }
.deco-c2 { width: 360px; height: 360px; bottom: -100px; right: -80px; background: rgba(29,158,117,0.05); }
.deco-c3 { width: 160px; height: 160px; top: 45%; left: 45%; background: rgba(93,202,165,0.06); }

/* Logo */
.left-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}
.left-logo .logo-icon { width: 40px; height: 40px; border-radius: 11px; }
.left-logo .logo-icon svg { width: 22px; height: 22px; }
.left-logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}
.left-logo-text span { color: var(--primary-mid); }

/* Headline */
.left-headline {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.5vw, 48px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}
.left-headline em { font-style: normal; color: var(--primary-mid); }

.left-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.48);
    line-height: 1.7;
    max-width: 420px;
    margin-bottom: 44px;
    position: relative;
    z-index: 1;
}

/* Features */
.features { display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.feature-item { display: flex; align-items: flex-start; gap: 13px; }
.feature-icon {
    width: 34px; height: 34px;
    background: rgba(29,158,117,0.14);
    border: 1px solid rgba(29,158,117,0.18);
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 1px;
}
.feature-icon svg { width: 16px; height: 16px; color: var(--primary-mid); }
.feature-text strong {
    display: block;
    font-size: 14px; font-weight: 600;
    color: #fff; margin-bottom: 2px;
    font-family: var(--font-display);
}
.feature-text span { font-size: 12px; color: rgba(255,255,255,0.4); }

/* Stats */
.stats-row {
    display: flex;
    gap: 36px;
    padding-top: 36px;
    border-top: 1px solid rgba(29,158,117,0.15);
    position: relative; z-index: 1;
}
.stat-num {
    font-family: var(--font-display);
    font-size: 26px; font-weight: 700;
    color: #fff; letter-spacing: -0.5px;
}
.stat-label { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 2px; }

/* ══════════════════════════════════════════════════════════════
   PARTIE DROITE
══════════════════════════════════════════════════════════════ */
.page-right {
    width: 500px;
    flex-shrink: 0;
    background: var(--bg-page);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 44px 52px;
    position: relative;
    overflow-y: auto;
}

.right-header { text-align: center; margin-bottom: 28px; width: 100%; }

.right-logo {
    display: inline-flex;
    align-items: center; gap: 9px;
    margin-bottom: 24px;
}
.right-logo-icon {
    width: 36px; height: 36px;
    background: var(--primary);
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
}
.right-logo-icon svg { width: 20px; height: 20px; }
.right-logo-text {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.right-header h1 {
    font-family: var(--font-display);
    font-size: 24px; font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.4px;
    margin-bottom: 7px;
}
.right-header p { font-size: 14px; color: var(--text-hint); }

/* Card formulaire */
.login-card {
    width: 100%;
    background: var(--bg-card);
    border-radius: 18px;
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(29,158,117,0.08);
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.login-card .form-input { height: 46px; font-size: 14px; }

/* Remember / Forgot */
.form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}
.forgot-link {
    font-size: 13px; color: var(--primary);
    font-weight: 500;
    transition: color var(--trans-fast);
}
.forgot-link:hover { color: var(--primary-dark); }

/* Bouton submit */
.btn-submit-login { width: 100%; height: 48px; font-size: 14px; letter-spacing: 0.2px; }

/* Toggle password */
.input-toggle {
    position: absolute; right: 13px;
    background: none; border: none;
    cursor: pointer; color: var(--text-hint);
    display: flex; padding: 4px;
    border-radius: var(--r-xs);
    transition: color var(--trans-fast);
}
.input-toggle:hover { color: var(--primary); }
.input-toggle svg { width: 17px; height: 17px; }

/* Divider */
.login-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 22px 0 14px;
}
.login-divider-line { flex: 1; height: 1px; background: var(--border); }
.login-divider-text { font-size: 12px; color: var(--text-hint); white-space: nowrap; }

/* Badge sécurité */
.security-badge {
    display: flex; align-items: center;
    justify-content: center; gap: 6px;
    margin-top: 18px;
    font-size: 12px; color: var(--text-hint);
}
.security-badge svg { width: 13px; height: 13px; color: var(--primary); }

/* Footer */
.right-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 12px; color: var(--text-hint);
}
.right-footer a { color: var(--primary); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    body.login-page { flex-direction: column; overflow: auto; background: var(--bg-page); }
    .page-left  { display: none; }
    .page-right { width: 100%; padding: 32px 24px; min-height: 100vh; }
}
