/* Pages publiques de l'espace client : connexion et « Mes sites » */
:root {
    --ink: #14161f;
    --ink-soft: #2a2e3d;
    --paper: #f5f6fa;
    --line: #e2e5ee;
    --muted: #6b7180;
    --accent: #3d5afe;
    --accent-dark: #2a41d6;
    --danger: #c62828;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
    font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

/* ---------- Connexion : panneau de marque + carte ---------- */
.acces-split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    min-height: 100%;
}
.acces-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    color: #fff;
    background:
        radial-gradient(circle at 15% 20%, rgba(61, 90, 254, .45), transparent 55%),
        radial-gradient(circle at 85% 85%, rgba(0, 200, 255, .25), transparent 50%),
        var(--ink);
    overflow: hidden;
}
.acces-logo { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.acces-logo span { color: #8fa2ff; }
.acces-brand h1 {
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -.02em;
    margin: 0 0 1rem;
    max-width: 14ch;
}
.acces-brand p { color: rgba(255, 255, 255, .72); max-width: 38ch; line-height: 1.6; margin: 0; }
.acces-brand small { color: rgba(255, 255, 255, .45); }

.acces-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.acces-card { width: 100%; max-width: 380px; }
.acces-card h2 { font-size: 1.6rem; font-weight: 600; margin: 0 0 .4rem; letter-spacing: -.01em; }
.acces-card .acces-sub { color: var(--muted); margin: 0 0 2rem; line-height: 1.5; }

.acces-field { margin-bottom: 1.1rem; }
.acces-field label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .4rem; }
.acces-field input {
    width: 100%;
    padding: .8rem .9rem;
    font: inherit;
    border: 1px solid var(--line);
    border-radius: .6rem;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.acces-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(61, 90, 254, .15);
}
.acces-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .85rem 1rem;
    margin-top: .5rem;
    font: inherit;
    font-weight: 500;
    color: #fff;
    background: var(--accent);
    border: 0;
    border-radius: .6rem;
    cursor: pointer;
    transition: background-color .15s, transform .1s;
    text-decoration: none;
}
.acces-btn:hover { background: var(--accent-dark); }
.acces-btn:active { transform: translateY(1px); }
.acces-alert {
    padding: .75rem .9rem;
    margin-bottom: 1.25rem;
    border-radius: .6rem;
    font-size: .9rem;
    color: var(--danger);
    background: rgba(198, 40, 40, .08);
    border: 1px solid rgba(198, 40, 40, .2);
}
.acces-info {
    padding: .75rem .9rem;
    margin-bottom: 1.25rem;
    border-radius: .6rem;
    font-size: .9rem;
    color: var(--ink-soft);
    background: rgba(61, 90, 254, .07);
    border: 1px solid rgba(61, 90, 254, .18);
}
.acces-foot { margin-top: 2rem; font-size: .8rem; color: var(--muted); text-align: center; }

/* ---------- Mes sites ---------- */
.acces-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    background: var(--ink);
    color: #fff;
}
.acces-top a { color: rgba(255, 255, 255, .75); text-decoration: none; font-size: .9rem; }
.acces-top a:hover { color: #fff; }
.acces-main { max-width: 960px; margin: 0 auto; padding: 3rem 1.5rem; }
.acces-main h1 { font-size: 1.9rem; font-weight: 600; margin: 0 0 .4rem; }
.acces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.acces-site {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.4rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .8rem;
    color: inherit;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.acces-site:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 10px 24px rgba(20, 22, 31, .08); }
.acces-site strong { font-size: 1.1rem; font-weight: 600; }
.acces-site span { color: var(--muted); font-size: .85rem; word-break: break-all; }
.acces-site em { margin-top: .75rem; font-style: normal; color: var(--accent); font-weight: 500; font-size: .9rem; }

@media (max-width: 820px) {
    .acces-split { grid-template-columns: 1fr; }
    .acces-brand { padding: 2rem 1.5rem; min-height: auto; }
    .acces-brand h1 { font-size: 1.8rem; margin-top: 2rem; }
    .acces-brand small { display: none; }
}
