/* ============================================================
   GANAMATIK — Registro / Login
   Tema oscuro con acentos naranja/dorado (fiel al diseño).
   ============================================================ */

:root {
    --naranja:        #fe8a12;
    --naranja-oscuro: #f07000;
    --naranja-vivo:   #ff7a00;
    --dorado:         #fcb247;
    --blanco:         #f0f0f0;
    --gris:           #9a9aa2;
    --gris-oscuro:    #666666;
    --fondo:          #000000;
    --fondo-input:    #141414;
    --borde-input:    #2b2b2b;
    --texto-boton:    #1e0800;
}

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

html, body {
    background: var(--fondo);
    color: var(--blanco);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
}

/* ── Marco con rieles decorativos laterales ─────────────── */
.marco {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

.marco::before,
.marco::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--dorado) 0%, var(--naranja) 55%, var(--naranja-oscuro) 100%);
    box-shadow: 0 0 14px rgba(254, 138, 18, 0.45);
    z-index: 5;
}

.marco::before { left: 8px; }
.marco::after  { right: 8px; }

/* ── Página ─────────────────────────────────────────────── */
.pagina {
    max-width: 460px;
    margin: 0 auto;
    padding: 24px 34px 60px;
}

.cabecera__logo {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 6px;
}

.sprite { display: none; }

/* ── Divisor con título ─────────────────────────────────── */
.divisor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 4px 0 26px;
}

.divisor__texto {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    white-space: nowrap;
}

.divisor__linea {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 12px;
    flex: 1;
    max-width: 90px;
}

.divisor__linea::before {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #6a6a6a);
}

.divisor__linea::after {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--dorado);
    transform: rotate(45deg);
    box-shadow: 0 0 8px rgba(252, 178, 71, 0.6);
}

.divisor__linea:last-child::before {
    background: linear-gradient(90deg, #6a6a6a, transparent);
}

/* ── Alerta de errores ──────────────────────────────────── */
.alerta {
    color: #ff5a4d;
    font-size: 0.85rem;
    line-height: 1.55;
    text-align: center;
    margin-bottom: 14px;
}

.alerta a { color: var(--naranja-vivo); }

/* ── Formulario ─────────────────────────────────────────── */
.form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.campo {
    position: relative;
}

.campo__input {
    width: 100%;
    background: var(--fondo-input);
    border: 1px solid var(--borde-input);
    border-radius: 12px;
    color: var(--blanco);
    font-size: 0.98rem;
    padding: 16px 48px 16px 18px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.campo__input::placeholder {
    color: var(--gris);
}

.campo__input:focus {
    border-color: var(--naranja);
    box-shadow: 0 0 0 3px rgba(254, 138, 18, 0.18);
}

.campo__icono {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--gris);
    pointer-events: none;
}

.campo__icono svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.campo__ojo {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--gris);
    padding: 0;
}

.campo__ojo svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Botón principal ────────────────────────────────────── */
.boton {
    width: 100%;
    margin-top: 6px;
    background: linear-gradient(180deg, #ff9a1f 0%, var(--naranja) 45%, var(--naranja-oscuro) 100%);
    color: var(--texto-boton);
    border: 0;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 16px 20px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    box-shadow: 0 6px 20px rgba(240, 112, 0, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.boton:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(240, 112, 0, 0.5); }
.boton:active { transform: translateY(0); }

/* ── Enlace a login ─────────────────────────────────────── */
.enlace-login {
    margin-top: 22px;
    text-align: center;
    color: var(--gris);
    font-size: 0.92rem;
}

.enlace-login a {
    color: var(--naranja-vivo);
    font-weight: 700;
    text-decoration: none;
}

/* ── Lema ───────────────────────────────────────────────── */
.lema {
    margin-top: 26px;
    text-align: center;
    color: var(--gris);
    font-size: 0.92rem;
    line-height: 1.5;
}

.lema strong {
    color: var(--dorado);
    letter-spacing: 0.04em;
}

/* ── Términos y condiciones ─────────────────────────────── */
.terminos {
    margin-top: 26px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.terminos__check {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 2px solid var(--gris);
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.terminos__check:checked {
    background: var(--naranja);
    border-color: var(--naranja);
}

.terminos__check:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #1e0800;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.terminos__texto {
    color: var(--gris);
    font-size: 0.82rem;
    line-height: 1.5;
}

.terminos__texto a {
    color: var(--naranja-vivo);
    text-decoration: none;
}

/* ── Páginas legales ─────────────────────────────────────── */
.legal { text-align: left; }

.legal__fecha {
    text-align: center;
    color: var(--gris);
    font-size: 0.8rem;
    margin-bottom: 18px;
}

.legal__contenido h2 {
    color: var(--dorado);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 20px 0 8px;
}

.legal__contenido p {
    color: var(--blanco);
    opacity: 0.92;
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 8px;
}

.legal__contenido ul {
    margin: 0 0 10px 20px;
    color: var(--blanco);
    opacity: 0.92;
    font-size: 0.9rem;
    line-height: 1.65;
}

.legal__contenido li { margin-bottom: 4px; }

.legal__contenido a {
    color: var(--naranja-vivo);
    text-decoration: none;
}

.legal .enlace-login {
    display: inline-block;
    margin-top: 24px;
}

/* ── "Pronto" (registro) ─────────────────────────────────── */
.pronto {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
    margin: 22px 0;
    background: linear-gradient(180deg, #ffe9b0 0%, var(--dorado) 45%, var(--naranja-oscuro) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ── Bienvenida (index) ─────────────────────────────────── */
.bienvenida {
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    color: #ffffff;
    margin: 10px 0 8px;
}

.bienvenida__correo {
    text-align: center;
    color: var(--dorado);
    font-size: 1rem;
    margin-bottom: 20px;
}

.boton--enlace {
    margin-top: 24px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 420px) {
    .pagina { padding: 18px 28px 50px; }
    .divisor__linea { max-width: 60px; }
}
