html,
body.registro-body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: manipulation;
}

/* ============================================================
   REGISTRO — Pantalla de registro de Destino Río Cuarto
   Fondo: Blanco oscuro  |  Card: Azul Oscuro
   ============================================================ */

/* ── Variables locales de la pantalla ───────────────────────── */
:root {
    --reg-bg:          #ffffff;           /* Blanco puro */
    --reg-card-bg:     #1d2655;          /* Azul Oscuro */
    --reg-card-shadow: rgba(29, 38, 85, 0.22);
    --reg-text-dark:   #1d2655;          /* Para textos sobre fondo claro */
    --reg-text-light:  rgba(255,255,255,0.92); /* Para textos sobre card */
    --reg-text-muted:  rgba(255,255,255,0.62);
    --reg-input-bg:    #ffffff;
    --reg-input-text:  #1d2655;
    --reg-input-ph:    #8a90b4;
    --reg-input-focus: rgba(99, 122, 222, 0.35);
    --reg-btn-primary: #1d2655;
    --reg-btn-text:    #ffffff;
    --reg-google-bg:   #ffffff;
    --reg-google-text: #1d2655;
    --reg-accent:      #3a4fa8;
}

/* ── Override del body (sobreescribe main.css) ───────────────── */
body.registro-body {
    background: var(--reg-bg);
    color: var(--reg-text-dark);
}

/* ── Layout principal ────────────────────────────────────────── */
.registro-screen {
    min-height: 100dvh;
    background: var(--reg-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 18px 44px;
    gap: 0;
    position: relative;
}

/* ── Logo superior ───────────────────────────────────────────── */
.registro-logo {
    width: min(44vw, 140px);
    height: auto;
    margin: 24px 0 20px;
    flex-shrink: 0;
    pointer-events: none;
    user-select: none;
}

/* ── Texto de bienvenida (sobre la card) ─────────────────────── */
.registro-greeting {
    text-align: center;
    margin: 0 0 14px;
    color: var(--reg-text-dark);
    letter-spacing: -0.04em;
    line-height: 1.0;
}

.registro-greeting .eyebrow {
    display: block;
    font-size: clamp(0.92rem, 2.2vw, 1.12rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 2px;
    color: var(--reg-accent);
}

.registro-greeting .headline {
    display: block;
    font-size: clamp(1.32rem, 3.9vw, 2rem);
    font-weight: 800;
    color: var(--reg-text-dark);
}

/* ── Card del formulario ─────────────────────────────────────── */
.registro-card {
    width: min(calc(100vw - 60px), 420px);
    background: var(--reg-card-bg);
    border-radius: 28px;
    padding: 38px;
    min-height: 580px;
    margin-top: 16px;
    box-shadow: none;
    display: flex;
}

#form-registro {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Campos del formulario ───────────────────────────────────── */
.reg-field {
    display: grid;
    gap: 5px;
}

.reg-field label {
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--reg-text-muted);
    letter-spacing: -0.01em;
    padding-left: 4px;
}

.reg-field input {
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 14px;
    padding: 0 16px;
    background: var(--reg-input-bg);
    color: var(--reg-input-text);
    font-size: 0.84rem;
    font-family: inherit;
    outline: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.reg-field input::placeholder {
    color: var(--reg-input-ph);
}

.reg-field input:focus {
    box-shadow: 0 0 0 3px var(--reg-input-focus), 0 4px 14px rgba(0,0,0,0.10);
    transform: translateY(-1px);
}

/* Error state */
.reg-field.error input {
    box-shadow: 0 0 0 2px rgba(240, 107, 107, 0.85), 0 4px 14px rgba(0,0,0,0.10);
}

/* Mensaje de error general */
.reg-error-msg {
    margin-top: -4px;
    padding: 10px 14px;
    border-radius: 13px;
    background: rgba(240, 107, 107, 0.14);
    border: 1px solid rgba(240, 107, 107, 0.30);
    color: #ffdede;
    font-size: 0.8rem;
    text-align: left;
}

/* ── Botón principal "Registrarse" ───────────────────────────── */
.reg-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(72%, 270px);
    min-height: 46px;
    margin-top: auto;
    align-self: center;
    border: 2px solid rgba(255,255,255,0.85);
    border-radius: 14px;
    background: transparent;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.reg-btn-primary:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.reg-btn-primary:active {
    transform: translateY(0);
}

/* Link interno a la card (¿Ya tienes cuenta?) */
.reg-login-link {
    margin: 14px 0 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--reg-text-muted);
}

.reg-login-link a {
    color: #bac5e6;
    font-weight: 700;
    text-decoration: none;
}

.reg-login-link a:hover {
    text-decoration: underline;
}

/* ── Nota de privacidad ──────────────────────────────────────── */
.registro-privacy {
    font-size: 0.74rem;
    color: #9498b5;
    text-align: center;
    margin-top: 6px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 480px) {
    .registro-screen {
        padding: 32px 16px 44px;
    }

    .registro-logo {
        width: min(58vw, 145px);
        margin: 28px 0 22px;
    }

    .registro-greeting .headline {
        font-size: clamp(1.55rem, 7.5vw, 2.2rem);
    }

    .registro-card {
        width: min(calc(100vw - 36px), 390px);
        padding: 38px;
        border-radius: 22px;
        min-height: 560px;
        margin-top: 14px;
    }

    .reg-field input {
        height: 46px;
        border-radius: 14px;
    }

    .reg-btn-primary,
    .reg-btn-google {
        min-height: 50px;
        border-radius: 14px;
    }

    .reg-btn-primary {
        width: min(66%, 210px);
    }
}
