:root {
    --bg: #050303;
    --surface: #111111;
    --surface-2: #191919;
    --border: #262626;
    --border-strong: #504e4e;
    --text: #ffffff;
    --muted: #9b9a9a;
    --primary: #ea2845;
    --primary-hover: #c5374a;
    --primary-deep: #890f21;
    --error: #f47a87;
    --radius: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: "Manrope", system-ui, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
/* Retícula fina y resplandor rojo, como en nestjs.com */
.grid-bg {
    position: fixed; inset: 0;
    background-image:
        linear-gradient(rgba(184,184,184,0.06) 0.5px, transparent 0.5px),
        linear-gradient(90deg, rgba(184,184,184,0.06) 0.5px, transparent 0.5px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 70%);
}
.glow {
    position: fixed; width: 640px; height: 640px; border-radius: 50%;
    top: -320px; left: 50%; transform: translateX(-50%);
    background: radial-gradient(circle, rgba(234,40,69,0.28), rgba(137,15,33,0.12) 45%, transparent 70%);
    filter: blur(40px);
}
.shell { position: relative; width: 100%; max-width: 400px; padding: 24px; text-align: center; }
.wordmark {
    font-family: "Reem Kufi", sans-serif; font-weight: 600;
    font-size: 2.25rem; letter-spacing: 0.18em; line-height: 1;
}
.tagline { color: var(--muted); font-size: 0.85rem; margin: 10px 0 28px; letter-spacing: 0.02em; }
.card {
    text-align: left;
    background: linear-gradient(to bottom, #202020, #0e0e0e);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
h1 { font-size: 1.25rem; font-weight: 700; margin: 0 0 6px; }
.hint { color: var(--muted); font-size: 0.85rem; margin: 0 0 20px; line-height: 1.5; }
label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: 0.06em; }
input {
    width: 100%; height: 44px; padding: 0 14px;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border); border-radius: 6px;
    font: 500 1rem "Manrope", sans-serif;       /* 16 px: iOS no amplía la página al escribir */
    outline: none; transition: border-color .15s, box-shadow .15s;
}
#code { font-family: "Geist Mono", monospace; letter-spacing: 0.2em; }
input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(234,40,69,0.18); }
.sub { color: var(--muted); font-size: 0.75rem; margin: 6px 0 0; }
button {
    width: 100%; height: 46px; margin-top: 22px;
    background: linear-gradient(180deg, rgba(234, 40, 69, .24), rgba(234, 40, 69, .10)); color: #fff;
    border: 1px solid rgba(234, 40, 69, .6); border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    font: 700 0.95rem "Manrope", sans-serif; cursor: pointer;
    transition: background .15s, border-color .15s, box-shadow .15s, transform .15s;
}
button:hover { background: linear-gradient(180deg, rgba(234, 40, 69, .34), rgba(234, 40, 69, .15)); border-color: rgba(234, 40, 69, .9);
    box-shadow: 0 0 0 3px rgba(234, 40, 69, .12), inset 0 1px 0 rgba(255, 255, 255, .06); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .6; cursor: wait; }
.trust { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; text-transform: none; letter-spacing: 0; font-weight: 500; cursor: pointer; }
.trust input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--primary); box-shadow: none; }
.trust span { font-size: .78rem; line-height: 1.45; color: var(--muted); }
.trust b { display: block; color: var(--text); font-size: .85rem; font-weight: 600; }
@media (max-width: 480px) {
    .shell { padding: 20px 16px; }
    .card { padding: 22px 18px; }
    .wordmark { font-size: 1.9rem; }
    .tagline { margin-bottom: 22px; }
}
.error { color: var(--error); font-size: 0.85rem; margin: 14px 0 0; }
.footer { color: var(--muted); font-size: 0.72rem; margin-top: 22px; }
