/* Login / recuperar / reset — marca Ninabit (compacto) */
@import url("modules/brand_tokens.css");

@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/fraunces/fraunces-700.woff2") format("woff2");
}
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/source-sans-3/source-sans-3-400.woff2") format("woff2");
}
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/source-sans-3/source-sans-3-600.woff2") format("woff2");
}
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/source-sans-3/source-sans-3-700.woff2") format("woff2");
}

:root {
    --ink: var(--nb-ink, #102a2a);
    --muted: var(--nb-muted, #4d6565);
    --paper: var(--nb-paper, #f4f7f5);
    --card: var(--nb-card, #ffffff);
    --line: var(--nb-line, #d5e0dc);
    --accent: var(--nb-accent, #0f766e);
    --accent-deep: var(--nb-accent-deep, #115e59);
    --glow: var(--nb-glow, #99f6e4);
    --font: "Source Sans 3", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
    --display: "Fraunces", Georgia, "Times New Roman", ui-serif, serif;
}

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

body.nb-auth {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-family: var(--font);
    color: var(--ink);
    background:
        radial-gradient(720px 340px at 8% -8%, color-mix(in srgb, var(--glow) 50%, transparent), transparent 62%),
        radial-gradient(560px 300px at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
        var(--paper);
    line-height: 1.4;
    -webkit-text-size-adjust: 100%;
}

.nb-auth__card {
    width: 100%;
    max-width: 20.5rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.15rem 1.2rem 1.25rem;
    box-shadow: 0 10px 28px rgba(16, 42, 42, 0.07);
    text-align: center;
}

.nb-auth__brand {
    margin: 0;
    font-family: var(--display);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    line-height: 1.1;
}

.nb-auth__brand a {
    color: inherit;
    text-decoration: none;
}

.nb-auth__tag {
    margin: 0.2rem 0 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
}

.nb-auth__lead {
    margin: 0.65rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.nb-auth__flashes {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    text-align: left;
}

.nb-auth__flashes li {
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    line-height: 1.35;
}

.nb-auth__flashes .error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.nb-auth__flashes .warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}
.nb-auth__flashes .success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.nb-auth__flashes .info {
    background: var(--nb-accent-soft, #ecfdf5);
    color: var(--accent-deep);
    border: 1px solid var(--nb-accent-border, #5eead4);
}

.nb-auth__form {
    margin-top: 0.85rem;
    text-align: left;
}

.nb-auth__field {
    margin-bottom: 0.65rem;
}

.nb-auth__field label {
    display: block;
    margin-bottom: 0.22rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--muted);
}

.nb-auth__field input {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 16px; /* iOS: evita zoom */
}

.nb-auth__field input:focus {
    outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
    outline-offset: 1px;
    border-color: var(--accent);
}

.nb-auth__links {
    margin: 0.15rem 0 0.7rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.nb-auth__links a {
    color: var(--accent-deep);
    font-weight: 600;
    text-decoration: none;
}
.nb-auth__links a:hover { text-decoration: underline; }

.nb-auth__btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.58rem 0.75rem;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.nb-auth__btn--primary {
    background: var(--accent);
    color: #fff;
}
.nb-auth__btn--primary:hover {
    background: var(--accent-deep);
    color: #fff;
}

.nb-auth__btn--ghost {
    margin-top: 0.55rem;
    background: #fff;
    color: var(--accent-deep);
    border: 1px solid var(--line);
}
.nb-auth__btn--ghost:hover {
    border-color: var(--accent);
    background: var(--nb-accent-soft, #ecfdf5);
}

.nb-auth__sep {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.85rem 0;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.nb-auth__sep::before,
.nb-auth__sep::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--line);
}

/* Botón Google — estilo oficial (blanco + G de colores) */
.nb-auth__btn--google {
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}
.nb-auth__btn--google:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    color: #3c4043;
}
.nb-auth__btn--google:active {
    background: #f1f3f4;
}
.nb-auth__google-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nb-auth__footnote {
    margin: 0.7rem 0 0;
    font-size: 0.7rem;
    color: var(--muted);
    line-height: 1.35;
}
.nb-auth__footnote a {
    color: var(--accent-deep);
    font-weight: 600;
    text-decoration: none;
}
.nb-auth__footnote a:hover { text-decoration: underline; }

.nb-auth__hint {
    margin: 0.65rem 0 0;
    font-size: 0.78rem;
    color: var(--muted);
    text-align: left;
    line-height: 1.4;
}
