/* =========================================================================
   Hirondelle — page de connexion (autonome, sans HUD)
   ========================================================================= */

:root {
    --bg:            #0b1220;
    --bg-card:       #121b2e;
    --bg-input:      #0b1220;
    --line:          #24324a;
    --text:          #e8eef7;
    --text-soft:     #93a0b5;
    --accent:        #14b8a6;
    --accent-hover:  #0f9a8b;
    --danger:        #f07178;
    --danger-bg:     rgba(240, 113, 120, 0.10);
    --radius:        16px;
    --focus:         0 0 0 3px rgba(20, 184, 166, 0.28);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
}

body.auth-page {
    min-height: 100vh;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.auth-bg {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 14, 22, 0.28), rgba(8, 14, 22, 0.42)),
        url("login-bg.svg") center / cover no-repeat;
    pointer-events: none;
}

.auth-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(18, 27, 46, 0.86);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px 32px 28px;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
}

.auth-title {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.auth-sub {
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.auth-step {
    margin: 10px 0 0;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-alert {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(240, 113, 120, 0.28);
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 0 18px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.auth-field {
    margin-bottom: 14px;
}

.auth-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-soft);
    font-size: 0.84rem;
    font-weight: 600;
}

.auth-input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    background: var(--bg-input);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font: inherit;
    font-size: 0.98rem;
}

.auth-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--focus);
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap .auth-input {
    padding-right: 44px;
}

.auth-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.auth-toggle:hover { color: var(--text); }

.auth-toggle svg {
    width: 18px;
    height: 18px;
}

.auth-otp {
    letter-spacing: 0.42em;
    text-align: center;
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
    padding-left: 0.42em;
}

.auth-submit {
    width: 100%;
    height: 44px;
    margin-top: 8px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #06201d;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
}

.auth-submit:hover { background: var(--accent-hover); }

.auth-submit:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

.auth-hint {
    margin: 18px 0 0;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.8rem;
    line-height: 1.45;
}

.auth-back {
    display: block;
    margin-top: 14px;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.85rem;
    text-decoration: none;
}

.auth-back:hover { color: var(--text); }

@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px 22px;
        border-radius: 14px;
    }
}
