﻿@charset "UTF-8";
/* ---------------------------------------------------------------------------
   Écrans d'accès (connexion, mot de passe oublié / nouveau, inscription,
   compte en attente). Mêmes couleurs que theme.css et presentation.css.
--------------------------------------------------------------------------- */

:root {
    --ink: #1d2433;
    --muted: #5d6678;
    --line: #dfe2ea;
    --brand: #902b68;
    --brand-dark: #621c4d;
    --accent: #b8327f;
    --danger: #b42d2d;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    font-family: 'Poppins', system-ui, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(800px 420px at 100% 0%, rgba(184,50,127,.35), transparent 60%),
        linear-gradient(160deg, var(--brand-dark), #2a0d22) fixed;
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 24px 16px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.card {
    width: 100%; max-width: 400px;
    background: #fff; border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
    padding: 32px 28px 26px;
}
.card.wide { max-width: 640px; }
.logo { display: block; margin: 0 auto 10px; height: 96px; width: auto; }
h1 { font-size: 1.25rem; font-weight: 600; text-align: center; margin: 0 0 4px; }
.sub { text-align: center; color: var(--muted); font-size: .9rem; margin: 0 0 24px; }
.message { color: var(--muted); font-size: .95rem; line-height: 1.6; text-align: center; margin: 0 0 22px; }

.field { margin-bottom: 16px; }
.field label, .field .control-label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 6px; }
.input-wrap { position: relative; }
.field input[type=text], .field input[type=password], .field input[type=email],
.field input:not([type]), .field .form-control {
    width: 100%;
    /* 16px minimum : en dessous, iOS zoome sur le champ au toucher. */
    font: inherit; font-size: 16px;
    padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px;
    background: #fafbfd; color: var(--ink);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field .form-control:focus {
    outline: none; border-color: var(--accent); background: #fff;
    box-shadow: 0 0 0 4px rgba(184,50,127,.15);
}
.field input.pwd { padding-right: 84px; }
.toggle-pwd {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    border: 0; background: transparent; color: var(--brand);
    font: inherit; font-size: .82rem; font-weight: 600;
    padding: 10px 10px; border-radius: 8px; cursor: pointer;
}
.toggle-pwd:hover { background: rgba(144,43,104,.08); }

/* Deux colonnes sur grand écran (inscription), une seule sur mobile */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* Choix exclusif présenté en « pilules » */
.choice { display: flex; gap: 8px; margin-bottom: 16px; }
.choice label {
    flex: 1; display: flex; align-items: center; gap: 8px;
    padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
    font-size: .9rem; cursor: pointer; background: #fafbfd;
}
.choice input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.choice label:has(input:checked) { border-color: var(--accent); background: #fdf3f8; }

.btn-main {
    display: block; width: 100%; margin-top: 8px;
    font: inherit; font-size: 1rem; font-weight: 600; text-align: center; text-decoration: none;
    padding: 14px; border: 0; border-radius: 12px;
    background: var(--accent); color: #fff; cursor: pointer;
    transition: background .15s, transform .15s;
}
.btn-main:hover { background: var(--brand); }
.btn-main:active { transform: scale(.99); }
.btn-main[disabled] { opacity: .7; cursor: wait; }

.links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; font-size: .88rem; }
.links.center { justify-content: center; }
.links a { color: var(--brand); text-decoration: none; font-weight: 500; padding: 4px 0; }
.links a:hover { text-decoration: underline; }

/* Messages de validation */
.validation-summary-errors {
    background: #fdecec; color: var(--danger); border-radius: 10px;
    padding: 10px 14px; margin-bottom: 18px; font-size: .88rem;
}
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.validation-summary-valid { display: none; }
.field-validation-error, .text-danger { color: var(--danger); font-size: .8rem; display: block; margin-top: 4px; }
.field-validation-valid { display: none; }
.validation-summary-errors.text-danger { font-size: .88rem; margin-top: 0; }

.back { margin-top: 22px; color: rgba(255,255,255,.8); font-size: .88rem; text-decoration: none; }
.back:hover { color: #fff; }

@media (max-width: 560px) {
    .grid-2 { grid-template-columns: 1fr; }
    .choice { flex-direction: column; }
}
@media (max-width: 480px) {
    body { justify-content: flex-start; padding-top: 32px; }
    .card { padding: 26px 20px 22px; border-radius: 18px; }
    .logo { height: 80px; }
    .links { flex-direction: column; align-items: center; gap: 6px; }
}
