/* ===== Hamburguesas Teca · Inicio de sesión ===== */
:root {
    --rojo: #D9411E;
    --naranja: #F09C0F;
    --naranja-oscuro: #E8890B;
    --texto: #2B2522;
    --texto-suave: #5E5550;
    --gris-borde: #E6DED6;
    --fondo-campo: #FAF6F1;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: 'Poppins', system-ui, sans-serif;
    color: var(--texto);
    background-color: var(--rojo);
    /* Puntos tipo ajonjolí */
    background-image: radial-gradient(rgba(120, 20, 0, .22) 2.5px, transparent 3px);
    background-size: 34px 34px;
    -webkit-tap-highlight-color: transparent;
}

/* ---------- Distribución: horizontal por defecto ---------- */
.login {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 72px;
    padding: 48px 88px 48px 96px;
}

/* ---------- Lado de la marca ---------- */
.marca {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.marca-aro {
    width: 392px;
    height: 392px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.marca-aro img {
    width: 348px;
    height: 348px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 24px 48px rgba(70, 10, 0, .35);
}

.marca-lema {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1;
    text-align: center;
}

.marca-lema span {
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: #FFD08A;
    flex-shrink: 0;
}

/* ---------- Tarjeta del formulario ---------- */
.tarjeta {
    width: 520px;
    max-width: 100%;
    flex-shrink: 0;
    background: #fff;
    border-radius: 32px;
    padding: 52px 52px 40px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    box-shadow: 0 32px 64px rgba(60, 10, 0, .35);
}

.tarjeta-encabezado h1 {
    margin: 0 0 6px;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
}

.tarjeta-encabezado p {
    margin: 0;
    font-size: 17px;
    color: var(--texto-suave);
}

.alerta {
    padding: 14px 18px;
    border-radius: 14px;
    background: #FDECE8;
    border: 2px solid #F3B8A9;
    color: #8F2410;
    font-size: 16px;
    font-weight: 500;
}

/* ---------- Campos ---------- */
.campo {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.campo label {
    font-size: 16px;
    font-weight: 600;
}

.campo-caja {
    position: relative;
    display: flex;
}

.campo-icono {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.campo-icono,
.ojo svg,
.btn-entrar svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.campo-icono { color: #8A817B; }

.campo input {
    flex: 1;
    width: 100%;
    height: 64px;
    padding: 0 20px 0 58px;
    font: inherit;
    font-size: 19px;
    color: var(--texto);
    background: var(--fondo-campo);
    border: 2px solid var(--gris-borde);
    border-radius: 16px;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.campo input::placeholder { color: #8A817B; }

.campo input:focus {
    outline: none;
    background: #fff;
    border-color: var(--naranja-oscuro);
    box-shadow: 0 0 0 4px rgba(240, 156, 15, .28);
}

#contrasena { padding-right: 72px; }

/* Botón del ojo */
.ojo {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--texto-suave);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ojo svg { width: 24px; height: 24px; }
.ojo .ojo-cerrado { display: none; }
.ojo.visible .ojo-abierto { display: none; }
.ojo.visible .ojo-cerrado { display: block; }

/* ---------- Recordar ---------- */
.recordar {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
}

.recordar input {
    width: 24px;
    height: 24px;
    margin: 0;
    accent-color: #C77800;
}

/* ---------- Botón Entrar ---------- */
.btn-entrar {
    height: 68px;
    border: 0;
    border-radius: 16px;
    background: var(--naranja);
    color: #2B1A05;
    font: inherit;
    font-size: 21px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(232, 137, 11, .35);
    transition: background .15s, transform .1s;
}

.btn-entrar svg { width: 24px; height: 24px; stroke-width: 2.5; }
.btn-entrar:hover { background: var(--naranja-oscuro); }
.btn-entrar:active { transform: scale(.98); }
.btn-entrar:disabled { opacity: .7; cursor: wait; }

button:focus-visible,
.recordar input:focus-visible {
    outline: 3px solid var(--texto);
    outline-offset: 3px;
}

.pie {
    margin: 0;
    font-size: 13px;
    color: #6B625D;
    text-align: center;
}

/* ---------- Tablet horizontal más angosta (ej. iPad 1024×768) ---------- */
@media (max-width: 1200px) {
    .login { gap: 48px; padding-left: 48px; padding-right: 48px; }
    .marca-aro { width: 300px; height: 300px; }
    .marca-aro img { width: 264px; height: 264px; }
    .marca-lema { font-size: 21px; }
    .tarjeta { width: 480px; padding: 44px 44px 36px; }
}

/* ---------- Tablet vertical ---------- */
@media (orientation: portrait), (max-width: 1000px) {
    .login {
        flex-direction: column;
        justify-content: flex-start;
        gap: 48px;
        padding: 88px 40px 48px;
    }

    .marca { flex: none; gap: 24px; }

    .marca-aro { width: 300px; height: 300px; }
    .marca-aro img { width: 264px; height: 264px; }

    .marca-lema { font-size: 22px; }
    .marca-lema span { width: 36px; }

    .tarjeta { width: 600px; padding: 52px 56px 40px; }
}

/* ---------- Tablet horizontal bajita (ej. 1280×720 con barras) ---------- */
@media (orientation: landscape) and (max-height: 760px) {
    .login { padding-top: 24px; padding-bottom: 24px; }
    .marca-aro { width: 320px; height: 320px; }
    .marca-aro img { width: 284px; height: 284px; }
    .tarjeta { padding: 40px 48px 32px; gap: 20px; }
}

/* ---------- Celular (por si acaso) ---------- */
@media (max-width: 560px) {
    .login { padding: 40px 16px 32px; gap: 32px; }
    .marca-aro { width: 200px; height: 200px; }
    .marca-aro img { width: 176px; height: 176px; }
    .marca-lema { font-size: 17px; letter-spacing: 2px; }
    .marca-lema span { width: 24px; }
    .tarjeta { padding: 36px 24px 28px; border-radius: 24px; }
    .tarjeta-encabezado h1 { font-size: 30px; }
}