/*
  Stile condiviso delle pagine di login / registrazione / verifica, versione v4
  (coerente con la landing parrucchieri_v4). Solo grafica: i form e le action restano identici.
*/

:root {
    --crema: #F4EFE7;
    --crema-2: #EDE6DA;
    --panna: #FBF8F3;
    --inchiostro: #262220;
    --testo: #4C453E;
    --tenue: #837A70;
    --accento: #6E7C86;
    --linea: rgba(38, 34, 32, 0.14);
    --tondo: 'Fredoka', system-ui, 'Segoe UI', sans-serif;
    --grottesco: 'Archivo', system-ui, 'Segoe UI', sans-serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 5vh, 56px) 16px;
    background:
        radial-gradient(circle at 12% 8%, rgba(110, 124, 134, 0.10), transparent 36%),
        radial-gradient(circle at 92% 96%, rgba(199, 169, 140, 0.16), transparent 40%),
        var(--crema);
    color: var(--inchiostro);
    font: 400 16px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
}

.auth-card {
    width: min(94vw, 440px);
    padding: clamp(28px, 5vw, 44px) clamp(22px, 4vw, 40px);
    background: var(--panna);
    border: 1px solid var(--linea);
    border-radius: 18px;
    box-shadow: 0 30px 70px -40px rgba(38, 34, 32, 0.45);
}

.auth-logo { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-logo img { display: block; height: 52px; width: auto; }

.auth-head { text-align: center; margin-bottom: 24px; }
.auth-title {
    font-family: var(--tondo);
    font-weight: 500;
    font-size: clamp(1.7rem, 5vw, 2.1rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
}
.auth-sub { margin-top: 8px; color: var(--tenue); font-size: 0.95rem; line-height: 1.5; }

/* ---- Form ----------------------------------------------------------------- */

form { display: grid; gap: 16px; }

.campo { display: grid; gap: 7px; }
.campo label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--inchiostro);
}
.campo .nota { color: var(--tenue); font-weight: 400; }

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid var(--linea);
    border-radius: 10px;
    background: #fff;
    color: var(--inchiostro);
    font: 400 1rem var(--sans);
    transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder { color: var(--tenue); opacity: 0.8; }
input:focus {
    outline: none;
    border-color: var(--inchiostro);
    box-shadow: 0 0 0 3px rgba(38, 34, 32, 0.10);
}

/* Codice di verifica: grande e centrato */
.code-input {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 12px;
    padding-left: 15px;
    min-height: 60px;
}
.code-input::placeholder { letter-spacing: 10px; font-size: 0.9em; }

/* ---- Pulsante (nero, pieno) ----------------------------------------------- */

.pulsante {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    padding: 13px 24px;
    border: 1px solid var(--inchiostro);
    border-radius: 999px;
    background: var(--inchiostro);
    color: var(--crema);
    font: 500 0.95rem var(--sans);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.pulsante:hover { background: transparent; color: var(--inchiostro); }

/* ---- Link e testi secondari ----------------------------------------------- */

.auth-foot { margin-top: 20px; text-align: center; font-size: 0.9rem; color: var(--tenue); }
.auth-foot + .auth-foot { margin-top: 10px; }
.auth-foot a { color: var(--inchiostro); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.auth-foot a:hover { text-decoration-thickness: 2px; }
.auth-legale { font-size: 0.8125rem; }
.auth-legale a { font-weight: 500; color: var(--tenue); }

/* ---- Messaggi flash -------------------------------------------------------- */

.flash-messages { display: grid; gap: 10px; margin-bottom: 20px; }
.flash-message {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--linea);
    border-left-width: 3px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}
.flash-message.error { background: #F7E8E5; border-left-color: #B4453B; color: #8A342C; }
.flash-message.success { background: #E8F0E8; border-left-color: #3F7A55; color: #2F5C40; }

/* ---- Banner gruppo (registrazione) ---------------------------------------- */

.banner-gruppo {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 12px 16px;
    border: 1px solid var(--linea);
    border-left: 3px solid var(--accento);
    border-radius: 10px;
    background: var(--crema-2);
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--testo);
}
.banner-gruppo strong { color: var(--inchiostro); }

/* ---- Riga consenso termini (registrazione) -------------------------------- */

.campo-terms {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 2px 0 4px;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--testo);
}
.campo-terms input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--inchiostro); }
.campo-terms a { color: var(--inchiostro); font-weight: 600; text-underline-offset: 2px; }

/* ---- Icona in cima (verifica) --------------------------------------------- */

.auth-icona {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}
.auth-icona span {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--crema-2);
    border: 1px solid var(--linea);
}
.auth-icona svg { width: 26px; height: 26px; color: var(--accento); }
