* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    background: linear-gradient(155deg, #111827 0%, #1a2a52 45%, #1c3a6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: ''; position: fixed;
    width: 650px; height: 650px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.04);
    top: -200px; right: 150px; pointer-events: none;
}
body::after {
    content: ''; position: fixed;
    width: 400px; height: 400px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.03);
    bottom: -100px; left: 80px; pointer-events: none;
}

.brand-block {
    position: fixed;
    top: 7rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    white-space: nowrap;
}
.brand-icon {
    width: 46px; height: 46px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; color: #fff;
    flex-shrink: 0;
}
.brand-title {
    font-size: 2.1rem; font-weight: 800; color: #fff;
    line-height: 1.15; letter-spacing: -0.5px;
}
.brand-sub {
    font-size: 0.95rem; color: rgba(255,255,255,0.42);
    margin-top: 0.3rem; line-height: 1.4;
}

.page-footer {
    position: fixed;
    bottom: 1.75rem;
    left: 3rem;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.22);
    z-index: 10;
}

.page {
    width: 100%;
    max-width: 1180px;
    padding: 0 3rem;
    position: relative;
    z-index: 1;
}

.main-row {
    display: grid;
    grid-template-columns: 1fr 1fr 320px;
    gap: 0.65rem 2.5rem;
    align-items: stretch;
}

/* Colonnes features */
.feat-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.feat-card {
    flex: 1;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 1rem 0.9rem;
    display: flex;
    flex-direction: column;
}
.feat-icon {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.1);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: rgba(255,255,255,0.8);
    margin-bottom: 0.75rem; flex-shrink: 0;
}
.feat-title {
    font-size: 0.82rem; font-weight: 700;
    color: rgba(255,255,255,0.88); margin-bottom: 0.3rem;
}
.feat-desc {
    font-size: 0.72rem; color: rgba(255,255,255,0.42); line-height: 1.55;
}

/* Colonne formulaire */
.form-col {
    display: flex;
    flex-direction: column;
}
.form-card {
    flex: 1;
    background: rgba(255,255,255,0.97);
    border-radius: 18px;
    box-shadow: 0 20px 55px rgba(0,0,0,0.3), 0 4px 14px rgba(0,0,0,0.15);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-title    { font-size: 1.05rem; font-weight: 800; color: #111827; margin-bottom: 0.2rem; }
.form-subtitle { font-size: 0.77rem; color: #94a3b8; margin-bottom: 1.4rem; }

.form-floating { margin-bottom: 0.75rem; }
.form-floating .form-control {
    border: 1.5px solid #e2e8f0; border-radius: 10px;
    font-size: 0.855rem; padding: 1rem 0.8rem 0.5rem; height: 50px;
    transition: all 0.2s; background: #f8fafc; color: #111827;
}
.form-floating .form-control:focus {
    border-color: #2c5fd4; box-shadow: 0 0 0 3px rgba(44,95,212,0.1); background: #fff;
}
.form-floating label { font-size: 0.79rem; color: #94a3b8; }

.form-row-bottom {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.85rem;
}
.remember-row { display: flex; align-items: center; gap: 0.4rem; }
.remember-row input[type="checkbox"] { width: 14px; height: 14px; accent-color: #2c5fd4; cursor: pointer; }
.remember-row label { font-size: 0.76rem; color: #64748b; cursor: pointer; margin: 0; }
.forgot-link { font-size: 0.76rem; color: #94a3b8; text-decoration: none; transition: color 0.15s; white-space: nowrap; }
.forgot-link:hover { color: #2c5fd4; }

.btn-login {
    background: linear-gradient(135deg, #2c5fd4, #1a3fa8);
    border: none; color: #fff; width: 100%; padding: 0.72rem;
    border-radius: 10px; font-weight: 700; font-size: 0.875rem;
    transition: all 0.2s; cursor: pointer;
    box-shadow: 0 2px 12px rgba(44,95,212,0.35);
}
.btn-login:hover {
    background: linear-gradient(135deg, #1a3fa8, #152f80);
    transform: translateY(-1px); box-shadow: 0 5px 20px rgba(44,95,212,0.45);
}
.btn-login:active { transform: translateY(0); }

.alert-login {
    background: #fef2f2; border: 1.5px solid #fca5a5; border-radius: 9px;
    padding: 0.55rem 0.8rem; font-size: 0.78rem; color: #b91c1c; margin-bottom: 0.85rem;
}

.pw-wrap { position: relative; }
.pw-wrap .form-control { padding-right: 2.6rem !important; }
.pw-toggle {
    position: absolute; right: 0.65rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #94a3b8; cursor: pointer;
    font-size: 0.95rem; padding: 0.2rem; z-index: 10;
}
.pw-toggle:hover { color: #475569; }

.page-footer {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.22);
}
.footer-legal-link {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.15s;
}
.footer-legal-link:hover { color: rgba(255,255,255,0.65); }

/* Bloc aide sous le formulaire */
.login-help-block {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.login-no-account {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
}
.login-no-account span {
    color: #64748b;
    font-weight: 500;
}
.login-support-link {
    font-size: 0.75rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
    display: inline-flex;
    align-items: center;
}
.login-support-link:hover { color: #2c5fd4; }

/* Mobile */
@media (max-width: 860px) {
    body { padding: 2rem 1.25rem; }
    .brand-title { font-size: 1.25rem; }
    .main-row { grid-template-columns: 1fr; }
    .feat-col { display: none; }
    .form-card { justify-content: flex-start; }
}
