/* Page de connexion (page autonome, sans le gabarit de base).
   Chargé par security/login.html.twig. */

:root {
    --bg:       #0c0c10;
    --bg-card:  #13131a;
    --border:   #2a2a38;
    --accent:   #c0392b;
    --accent2:  #e74c3c;
    --text:     #e8e0d0;
    --muted:    #6b6b80;
    --radius:   8px;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: Georgia, 'Times New Roman', serif;
    min-height: 100vh;
}

.bg-layer {
    position: fixed; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 50%, rgba(192,57,43,.07) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 90% 20%, rgba(100,30,20,.09) 0%, transparent 70%);
    pointer-events: none;
}

.bg-grid {
    position: fixed; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(192,57,43,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(192,57,43,.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.page {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 420px;
}

/* ── Hero ── */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem;
    gap: 1.8rem;
}

.hero-eyebrow {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--accent);
}

.hero-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.15;
    color: #f5f0e8;
    font-weight: normal;
}

.hero-title em {
    font-style: normal;
    color: var(--accent);
}

.hero-desc {
    font-size: .98rem;
    color: var(--muted);
    line-height: 1.75;
    max-width: 420px;
}

.spaces {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    max-width: 440px;
}

.space-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,.02);
}

.space-icon { font-size: 1.3rem; width: 2rem; text-align: center; flex-shrink: 0; }
.space-info { display: flex; flex-direction: column; gap: .1rem; }
.space-label { font-size: .85rem; color: var(--text); }
.space-desc  { font-size: .75rem; color: var(--muted); }

/* ── Formulaire ── */
.login-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0,0,0,.25);
    border-left: 1px solid var(--border);
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
}

.login-card h2 {
    font-size: 1.3rem;
    color: #f5f0e8;
    margin-bottom: .3rem;
    font-weight: normal;
}

.login-subtitle {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-bottom: 1.1rem;
}

.form-group label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
}

.form-group input {
    background: #0f0f14;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: .7rem 1rem;
    font-size: .95rem;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(192,57,43,.15);
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: .85rem;
    color: var(--muted);
}

.form-check { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.form-check input { width: auto; }

.btn-login {
    width: 100%;
    padding: .8rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s;
    letter-spacing: .02em;
}
.btn-login:hover { background: var(--accent2); }

.alert-error {
    background: rgba(192,57,43,.12);
    border: 1px solid rgba(192,57,43,.3);
    border-radius: var(--radius);
    padding: .7rem 1rem;
    font-size: .88rem;
    color: #e74c3c;
    margin-bottom: 1.2rem;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .page {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 2.5rem 1.5rem 1.5rem;
        gap: 1.2rem;
        text-align: center;
        align-items: center;
    }

    .hero-desc { max-width: 100%; }
    .spaces { max-width: 100%; width: 100%; }

    .login-col {
        border-left: none;
        border-top: 1px solid var(--border);
        padding: 1.5rem;
        background: transparent;
    }

    .login-card { max-width: 100%; }
}

@media (max-width: 400px) {
    .hero { padding: 1.5rem 1rem; }
    .login-col { padding: 1rem; }
    .login-card { padding: 1.5rem 1.2rem; }
}
