/* ============================================================
   Eddy — Auth pages (login, register, change_password)
   Standalone pages — design tokens définis localement.
   ============================================================ */

:root {
    color-scheme: light;
    --auth-bg:       #f5f5f7;
    --auth-card:     #ffffff;
    --auth-border:   #d2d2d7;
    --auth-text:     #1d1d1f;
    --auth-secondary:#6e6e73;
    --auth-accent:   #0071e3;
    --auth-accent-h: #0077ed;
    --auth-negative: #d00;
    --auth-positive: #080;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--auth-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: var(--auth-text);
}

.card {
    background: var(--auth-card);
    border-radius: 16px;
    padding: 48px 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.card--wide { max-width: 440px; }

.logo { margin-bottom: 12px; }

.subtitle {
    color: var(--auth-secondary);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

/* Flash messages */
.flash {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 20px;
}
.flash.error   { background: #fff0f0; color: var(--auth-negative); border: 1px solid #fcc; }
.flash.success { background: #f0fff4; color: var(--auth-positive); border: 1px solid #cfc; }

/* Form fields */
label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--auth-text);
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
input:focus-visible { border-color: var(--auth-accent); }

.hint {
    font-size: 0.78rem;
    color: var(--auth-secondary);
    margin-top: -14px;
    margin-bottom: 20px;
}

/* Submit button */
button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: var(--auth-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
button[type="submit"]:hover { background: var(--auth-accent-h); }

/* Notice / warning box */
.notice {
    margin-top: 24px;
    padding: 12px 16px;
    background: var(--auth-bg);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--auth-secondary);
    line-height: 1.5;
}
.notice--warning {
    background: #fff8e6;
    color: #7a5500;
    border: 1px solid #ffe0a0;
}

/* Back / return link */
.back-link {
    display: block;
    margin-top: 20px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--auth-accent);
    text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* Card centered variant (invitation invalide, etc.) */
.card--center { text-align: center; }
.auth-icon    { font-size: 3rem; margin-bottom: 16px; }
.auth-page-title { font-size: 1.25rem; margin-bottom: 12px; }
.auth-page-text  { color: var(--auth-secondary); font-size: 0.9rem; line-height: 1.6; }
.auth-page-text--mt { margin-top: 12px; }
.auth-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--auth-accent);
    text-decoration: none;
    font-size: 0.9rem;
}
