:root {
    --si-primary: #1a237e;
    --si-primary-dark: #0d1642;
    --si-primary-light: #3949ab;
    --si-accent: #ff6f00;
    --si-accent-light: #ff9800;
    --si-text: #1e293b;
    --si-text-light: #64748b;
    --si-bg: #f8fafc;
    --si-card: #ffffff;
    --si-border: #e2e8f0;

    --si-gradient: linear-gradient(135deg, #1a237e 0%, #3949ab 50%, #1a237e 100%);
    --si-gradient-accent: linear-gradient(135deg, #ff6f00 0%, #ff9800 100%);
    --si-shadow-lg: 0 10px 40px rgba(26,35,126,0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--si-bg);
    color: var(--si-text);
}

a { text-decoration: none; color: inherit; }

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--si-primary);
    margin-bottom: 40px;
    width: fit-content;
}

.login-logo-icon {
    width: 34px;
    height: 34px;
    background: var(--si-gradient);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.login-panel h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--si-primary-dark);
    margin-bottom: 8px;
}

.login-sub {
    color: var(--si-text-light);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.login-error {
    background: rgba(220,38,38,0.08);
    border: 1px solid rgba(220,38,38,0.25);
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--si-text);
    margin-top: 14px;
}

.login-form input {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 13px 16px;
    border: 1px solid var(--si-border);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input:focus {
    border-color: var(--si-primary-light);
    box-shadow: 0 0 0 3px rgba(57,73,171,0.12);
}

.login-btn {
    margin-top: 24px;
    background: var(--si-gradient);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(26,35,126,0.3);
    transition: transform 0.2s;
}

.login-btn:hover { transform: translateY(-2px); }

.login-demo {
    margin-top: 32px;
    background: var(--si-bg);
    border: 1px dashed var(--si-border);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.8rem;
    color: var(--si-text-light);
}

.login-demo strong { color: var(--si-text); display: block; margin-bottom: 6px; }
.login-demo ul { margin-top: 4px; padding-left: 18px; }
.login-demo li { margin-bottom: 2px; }

.login-side {
    background: var(--si-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.login-side::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 320px;
    height: 320px;
    background-image: radial-gradient(rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 20px 20px;
    border-radius: 50%;
}

.login-side-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 380px;
}

.login-side-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.3;
}

.login-side-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .login-page { grid-template-columns: 1fr; }
    .login-side { display: none; }
    .login-panel { padding: 40px 24px; max-width: 100%; }
}
/* ----- Lien "Créer un compte" / "Se connecter" ----- */
.login-switch {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

.login-switch a {
    color: #1a237e;
    font-weight: 600;
    text-decoration: none;
}

.login-switch a:hover {
    text-decoration: underline;
}

/* ----- Choix d'offre (Découverte / Pro) à l'inscription ----- */
.login-offer-choice {
    display: flex;
    gap: 12px;
    margin: 8px 0 20px;
}

.login-offer-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.login-offer-card:hover {
    border-color: #c7d2fe;
}

.login-offer-card.selected {
    border-color: #1a237e;
    background: rgba(26, 35, 126, 0.04);
}

.login-offer-card input[type="radio"] {
    margin-bottom: 4px;
}

.login-offer-title {
    font-weight: 700;
    color: #1a237e;
    font-size: 15px;
}

.login-offer-desc {
    font-size: 12px;
    color: #64748b;
}


