/* Écrans pré-authentification (connexion, accès refusé) + tokens de marque Hermes.
   Palette : neutre chaud + orange Favex. Polices : Sora (titres) / Public Sans (texte),
   chargées depuis Google Fonts dans App.razor. Voir docs/DECISIONS.md. */

:root {
    --hermes-bg: #FBF6F0;
    --hermes-surface: #FFFFFF;
    --hermes-ink: #221D18;
    --hermes-ink-soft: #6E655B;
    --hermes-border: #EBDDCC;
    --hermes-panel-dark: #1B1611;
    --hermes-panel-dark-2: #100C09;
    --hermes-panel-ink: #F6F1EA;
    --hermes-panel-ink-soft: #C9BFB2;
    --hermes-panel-foot: #8A8073;
    --hermes-accent: #E4620D;
    --hermes-accent-dark: #B84A08;
    --hermes-accent-soft: #FDE4CE;
    --hermes-accent-on-soft: #7A3808;
    --hermes-danger: #B3271D;
    --hermes-danger-soft: #F7E4E1;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
    background: var(--hermes-bg);
    font-family: 'Public Sans', system-ui, -apple-system, sans-serif;
    color: var(--hermes-ink);
}

/* -- Panneau de marque (gauche) --------------------------------------- */

.auth-panel {
    width: 560px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #34190A 0%, var(--hermes-panel-dark) 45%, var(--hermes-panel-dark-2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 64px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.auth-panel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--hermes-accent);
}

.auth-glow {
    position: absolute;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228, 98, 13, 0.5) 0%, rgba(228, 98, 13, 0) 70%);
    top: -200px;
    right: -240px;
}

.auth-glow-2 {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228, 98, 13, 0.3) 0%, rgba(228, 98, 13, 0) 70%);
    bottom: -160px;
    left: -140px;
}

.auth-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.auth-mark {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-mark span {
    font-family: 'Sora', system-ui, sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--hermes-panel-ink);
    letter-spacing: 0.01em;
}

.auth-mid {
    position: relative;
    max-width: 400px;
}

.auth-mid h1 {
    font-family: 'Sora', system-ui, sans-serif;
    font-size: 40px;
    line-height: 1.15;
    color: var(--hermes-panel-ink);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
}

.auth-mid p {
    margin: 20px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--hermes-panel-ink-soft);
    font-weight: 400;
}

.auth-foot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-foot span {
    font-size: 13px;
    color: var(--hermes-panel-foot);
}

/* -- Carte (droite) ----------------------------------------------------- */

.auth-card-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: radial-gradient(120% 55% at 50% 0%, var(--hermes-accent-soft) 0%, var(--hermes-surface) 60%);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--hermes-accent-soft);
    color: var(--hermes-accent-on-soft);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.auth-card h2 {
    font-family: 'Sora', system-ui, sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--hermes-ink);
    margin: 0;
}

.auth-lead {
    font-size: 15px;
    color: var(--hermes-ink-soft);
    line-height: 1.55;
    margin: 0;
}

.auth-ms-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 48px;
    background: #FFFFFF;
    border: 1px solid #8C8C8C;
    border-radius: 2px;
    font-family: 'Public Sans', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #5E5E5E;
    text-decoration: none;
    cursor: pointer;
}

.auth-ms-btn:hover {
    background: #F6F6F6;
}

.auth-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: var(--hermes-accent-soft);
    border-radius: 8px;
}

.auth-hint p {
    font-size: 13px;
    color: var(--hermes-accent-on-soft);
    line-height: 1.5;
    margin: 0;
}

/* -- Écran "Accès refusé" ------------------------------------------------ */

.auth-denied-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-retry-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    background: var(--hermes-accent);
    border: 1px solid var(--hermes-accent);
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.auth-retry-btn:hover {
    background: var(--hermes-accent-dark);
    border-color: var(--hermes-accent-dark);
}

.auth-back-link {
    text-align: center;
    font-size: 13px;
    color: var(--hermes-accent-dark);
    text-decoration: none;
}

.auth-back-link:hover {
    color: var(--hermes-accent);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .auth-panel {
        display: none;
    }
}
