/* ============================================================
   auth.css — pages connexion / inscription (thème médiéval)
   ============================================================ */

/* ── Page ────────────────────────────────────────────────── */

.page-auth {
    display:          flex;
    align-items:      center;
    justify-content:  center;
    min-height:       100vh;
    background-color: #0a0806;
    font-family:      'Cinzel', serif;
}

.page-auth main {
    width:           100%;
    display:         flex;
    justify-content: center;
    padding:         2rem 1rem;
}

/* ── Wrapper centré ──────────────────────────────────────── */

.auth-wrap {
    display:        flex;
    flex-direction: column;
    align-items:    center;
    gap:            2rem;
    width:          min(420px, 100%);
}

/* ── Logo ────────────────────────────────────────────────── */

.auth-brand img {
    height:     180px;
    width:      auto;
    display:    block;
    object-fit: contain;
    filter:     drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

/* ── Pile de parchemins ──────────────────────────────────── */

.auth-parchment-container {
    position: relative;
    z-index:  1;
    width:    100%;
}

/* Feuille du bas */
.auth-parchment-container::before {
    content:          '';
    position:         absolute;
    top: 5px; right: -5px; bottom: -5px; left: 5px;
    background-color: #e3d5b8;
    border:           1px solid #c8b693;
    transform:        rotate(1.5deg);
    box-shadow:       2px 2px 15px rgba(0,0,0,0.7);
    z-index:          -2;
    border-radius:    2px;
}

/* Feuille du milieu */
.auth-parchment-container::after {
    content:          '';
    position:         absolute;
    top: -2px; right: 2px; bottom: 4px; left: -4px;
    background-color: #ebdcb9;
    border:           1px solid #c8b693;
    transform:        rotate(-1deg);
    box-shadow:       0 4px 10px rgba(0,0,0,0.5);
    z-index:          -1;
    border-radius:    2px;
}

/* Feuille du dessus */
.auth-parchment-container .paper-top {
    background-color: #f4ebd8;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(0,0,0,0.02) 100%);
    border:           1px solid #d8c8a8;
    border-radius:    2px;
    box-shadow:       -2px 2px 8px rgba(0,0,0,0.2);
}

/* ── Contenu ─────────────────────────────────────────────── */

.auth-content {
    padding: 2.25rem 2.5rem 2rem;
}

.auth-meta-label {
    font-family:    'Cinzel', serif;
    font-size:      0.75rem;
    color:          #8b2626;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom:  0.5rem;
}

.auth-title {
    font-family:    'Cinzel', serif;
    font-size:      1.4rem;
    font-weight:    700;
    color:          #2c1e16;
    letter-spacing: 1px;
    margin:         0 0 1.75rem;
}

/* ── Alerte erreur ───────────────────────────────────────── */

.auth-error {
    font-family:   'Crimson Text', serif;
    font-size:     1rem;
    color:         #8b2626;
    background:    rgba(139,38,38,0.08);
    border:        1px solid rgba(139,38,38,0.25);
    border-radius: 2px;
    padding:       0.5rem 0.75rem;
    margin-bottom: 1.25rem;
}

/* ── Formulaire ──────────────────────────────────────────── */

.auth-form {
    display:        flex;
    flex-direction: column;
    gap:            1.25rem;
}

.auth-field {
    display:        flex;
    flex-direction: column;
    gap:            0.3rem;
}

.auth-field label {
    font-family:    'Cinzel', serif;
    font-size:      0.72rem;
    color:          #8b2626;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.auth-field small {
    font-family: 'Crimson Text', serif;
    font-size:   0.85rem;
    color:       #8b7055;
    font-style:  italic;
    letter-spacing: 0;
    text-transform: none;
}

.auth-field input {
    width:          100%;
    background:     transparent;
    border:         none;
    border-bottom:  1px dashed #bba885;
    font-family:    'Crimson Text', serif;
    font-size:      1.1rem;
    color:          #2c1e16;
    padding:        4px 0 6px;
    outline:        none;
    transition:     border-color 0.2s;
    box-sizing:     border-box;
}

.auth-field input:focus {
    border-bottom-color: #8b2626;
}

.auth-field input::placeholder {
    color:      #bba885;
    font-style: italic;
}

/* ── Bouton soumettre ────────────────────────────────────── */

.auth-submit {
    background:       linear-gradient(to bottom, #3a2e25 0%, #241b14 100%);
    border:           1px solid #1a120d;
    border-top-color: #524336;
    border-radius:    3px;
    color:            #c8b693;
    font-family:      'Cinzel', serif;
    font-size:        0.85rem;
    font-weight:      700;
    padding:          10px 14px;
    cursor:           pointer;
    text-transform:   uppercase;
    letter-spacing:   2px;
    box-shadow:       0 2px 4px rgba(0,0,0,0.5);
    transition:       all 0.2s ease;
    width:            100%;
    margin-top:       0.5rem;
}

.auth-submit:hover {
    background:       linear-gradient(to bottom, #45372d 0%, #2c221a 100%);
    color:            #ebdcb9;
    border-top-color: #635243;
}

.auth-submit:active {
    background:   #1e1610;
    box-shadow:   inset 0 2px 5px rgba(0,0,0,0.8);
    transform:    translateY(1px);
}

/* ── Pied de formulaire ──────────────────────────────────── */

.auth-footer {
    text-align:  center;
    font-family: 'Crimson Text', serif;
    font-size:   1rem;
    color:       #8b7055;
    padding:     1rem 2.5rem 1.5rem;
    border-top:  1px dashed #d0bc9a;
}

.auth-footer a {
    color:           #8b2626;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-footer a:hover { color: #5a1515; }
