* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: #eef2f7;
    color: #1f2937;
}

.tarjeta {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    padding: 28px 24px;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
}

h1 {
    margin: 0;
    font-size: 1.7rem;
    text-align: center;
    color: #1e3a5f;
}

.subtitulo {
    margin: 6px 0 22px;
    text-align: center;
    color: #6b7280;
}

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

input[type=text],
input[type=password] {
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}

input:focus {
    outline: 2px solid #1e3a5f;
    outline-offset: 1px;
}

button,
.boton-salir {
    display: block;
    width: 100%;
    margin-top: 22px;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: #1e3a5f;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.boton-salir:hover {
    background: #274b73;
}

.alerta {
    margin-bottom: 8px;
    padding: 12px;
    border-radius: 8px;
    background: #fde8e8;
    color: #9b1c1c;
    text-align: center;
}

.datos {
    margin: 0;
}

.dato {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.dato dt {
    font-size: 0.85rem;
    color: #6b7280;
}

.dato dd {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    word-break: break-word;
}

.dato.destacado dd {
    font-size: 1.6rem;
    color: #166534;
}

/* Pantallas medianas y grandes: datos en dos columnas (etiqueta | valor) */
@media (min-width: 600px) {
    .tarjeta {
        max-width: 520px;
        padding: 36px 40px;
    }

    .dato {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        gap: 16px;
    }
}
