/* Feuille unique, sans framework : le service tient en trois écrans. Les variables sont celles du
   gestionnaire de tâches — les sites du domaine doivent se ressembler, sinon la redirection vers
   la page de connexion donne l'impression d'avoir quitté le domaine. */

:root {
    color-scheme: light dark;

    --fond: #f4f5f7;
    --surface: #ffffff;
    --texte: #1c1e26;
    --texte-doux: #6b7080;
    --bordure: #e3e5ea;

    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-texte: #ffffff;

    --danger: #dc2626;
    --danger-doux: #fdecec;

    --ombre: 0 1px 2px rgba(20, 21, 33, .04), 0 4px 12px rgba(20, 21, 33, .05);
    --rayon: 12px;
    --rayon-sm: 8px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --fond: #101116;
        --surface: #191a21;
        --texte: #eceef3;
        --texte-doux: #9297a8;
        --bordure: #2b2d38;

        --accent: #818cf8;
        --accent-hover: #a5b0fb;
        --accent-texte: #141520;

        --danger: #f87171;
        --danger-doux: #331b1b;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: var(--fond);
    color: var(--texte);
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main { width: 100%; max-width: 24rem; }

.carte {
    background: var(--surface);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
    padding: 2rem;
}

h1 { margin: 0; font-size: 1.35rem; letter-spacing: -.01em; }

.sous-titre { margin: .35rem 0 1.5rem; color: var(--texte-doux); font-size: .92rem; }

label {
    display: block;
    margin-bottom: .35rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--texte-doux);
}

input[type="text"], input[type="password"] {
    width: 100%;
    margin-bottom: 1.1rem;
    padding: .65rem .75rem;
    border: 1px solid var(--bordure);
    border-radius: var(--rayon-sm);
    background: var(--fond);
    color: var(--texte);
    font: inherit;
}

input:focus-visible, button:focus-visible, a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.principal, .secondaire {
    display: block;
    width: 100%;
    padding: .7rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--rayon-sm);
    font: inherit;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.principal { background: var(--accent); color: var(--accent-texte); }
.principal:hover { background: var(--accent-hover); }

.secondaire { background: transparent; color: var(--texte-doux); border-color: var(--bordure); }
.secondaire:hover { color: var(--texte); }

.erreur {
    margin-bottom: 1.2rem;
    padding: .7rem .85rem;
    border-radius: var(--rayon-sm);
    background: var(--danger-doux);
    color: var(--danger);
    font-size: .9rem;
}

code { font-size: .85em; word-break: break-all; }

.sites { margin: 0 0 1.5rem; padding-left: 1.1rem; }
.sites a { color: var(--accent); }
