/* Pantallas fuera del panel: entrar, recuperar y cambiar la contrasena, e inicio. Mismos colores que
   panel.css: una ficha sobre fondo azul marino, para que se distinga en cualquier pantalla. */

:root {
    --azul: #2563eb;
    --azul-fuerte: #1d4ed8;
    --fondo: #1c2b4a;
    --tarjeta: #fff;
    --texto: #18181b;
    --texto-fuerte: #09090b;
    --texto-tenue: #52525b;
    --enlace: #1d4ed8;
    --linea: #e4e4e7;
    --borde: #8a94a6;
    --error: #ba2121;
    --exito: #107c10;
}

@media (prefers-color-scheme: dark) {
    :root {
        --fondo: #0c1322;
        --tarjeta: #172033;
        --texto: #e8ecf4;
        --texto-fuerte: #fff;
        --texto-tenue: #a7b1c4;
        --enlace: #8fb0ff;
        --linea: #263047;
        --borde: #6b7a96;
        --error: #e35f5f;
        --exito: #5fd38d;
        color-scheme: dark;
    }
}

body {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 24px 16px;
    background: var(--fondo);
    color: var(--texto);
    font-family: "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}

main {
    box-sizing: border-box;
    width: 100%;
    max-width: 24rem;
    padding: 28px;
    border-radius: 16px;
    background: var(--tarjeta);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.marca {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--texto-fuerte);
    font-size: 1.125rem;
    font-weight: 700;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--azul);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 800;
}

h1 {
    margin: 0 0 8px;
    color: var(--texto-fuerte);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    margin: 20px 0 4px;
    color: var(--texto-fuerte);
    font-size: 1rem;
}

a {
    color: var(--enlace);
    font-weight: 600;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

label {
    display: block;
    margin-top: 14px;
    font-size: 0.875rem;
    font-weight: 600;
}

input:not([type="hidden"]) {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    margin-top: 4px;
    padding: 0 14px;
    border: 1px solid var(--borde);
    border-radius: 10px;
    background: var(--tarjeta);
    color: var(--texto);
    font: inherit;
}

input:focus {
    border-color: var(--azul);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

button {
    width: 100%;
    height: 48px;
    margin-top: 18px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: var(--azul);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

button:hover,
button:focus {
    background: var(--azul-fuerte);
}

.helptext,
.errorlist {
    font-size: 0.8125rem;
}

.helptext {
    color: var(--texto-tenue);
}

.errorlist,
.aviso {
    color: var(--error);
}

.exito {
    color: var(--exito);
}
