/* La CAVANICOS : pages de connexion et d'inscription */

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

body {
    background: #000;
    min-height: 100vh;
    display: flex;
    font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    color: #fff;
}

/* margin:auto centre verticalement quand il y a de la place, et laisse défiler sinon */
.auth-wrap {
    width: min(480px, 100vw);
    margin: auto;
    padding-bottom: 32px;
}

/* On ne garde que le haut de l'affiche (titre + objets) : le bas est du noir vide,
   remplacé par le formulaire. Le dégradé évite une coupure visible. */
.auth-poster {
    display: block;
    width: 100%;
    aspect-ratio: 1024 / 1010;
    object-fit: cover;
    object-position: top;
    -webkit-mask-image: linear-gradient(#000 78%, transparent);
    mask-image: linear-gradient(#000 78%, transparent);
}

.auth-form {
    position: relative;
    width: min(320px, 82%);
    margin: -7% auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.auth-title {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 2px;
}

.auth-error {
    color: #ff453a;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-align: center;
    line-height: 1.5;
}

.auth-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 16px; /* 16px minimum : en dessous, iOS zoome la page au focus */
    font-family: inherit;
    letter-spacing: 0.04em;
    text-align: center;
    outline: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.2s;
}
.auth-input::placeholder { color: rgba(255, 255, 255, 0.35); letter-spacing: 0.04em; }
.auth-input:focus { border-color: rgba(255, 255, 255, 0.5); }
.auth-input.is-code { text-transform: uppercase; letter-spacing: 0.14em; }

.auth-btn {
    width: 100%;
    margin-top: 4px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 11px;
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 0.12em;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s;
}
.auth-btn:hover { background: rgba(255, 255, 255, 0.2); }

.auth-alt {
    margin-top: 8px;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}
.auth-alt a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.auth-alt a:hover { color: #fff; }
