* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, Arial, sans-serif;
}

:root {
    --nav-h: 78px;
    --brand-h: 42px;
}

/* NAVBAR */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    background: #f2f5f5;
    z-index: 10;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.nav__container {
    max-width: 1180px;
    margin: 0 auto;
    height: 100%;
    padding: 0 1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand__logo {
    height: var(--brand-h);
    width: auto;
    display: block;
    margin-left: 0px;
}

.menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.menu__link {
    color: #111827;
    text-decoration: none;
    font-size: 18px;
    padding-bottom: 6px;
}

.menu__link--active {
    border-bottom: 2px solid #111827;
}

/* HERO */
.hero {
    /* Mejor en móvil: 100svh / 100dvh maneja barra del navegador */
    min-height: 100vh;
    min-height: 100svh;
    padding-top: var(--nav-h);
    background-size: cover;
    background-position: center;
    position: relative;
    display: grid;
    place-items: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .35));
}

.hero__content {
    position: relative;
    width: min(1040px, 92%);
    text-align: center;
    padding: 48px 0;
}

.hero__title {

    color: #ffffff;
    font-weight: 700;
    font-size: clamp(30px, 4.3vw, 72px);
    line-height: 1.08;
    letter-spacing: -0.02em;

}

.hero__subtitle {
    margin-top: 12px;
    color: rgba(255, 255, 255, .92);
    font-size: clamp(14px, 1.7vw, 18px);
}

/* LOGIN CARD */
.login-card {
    margin: 16px auto 0;
    width: min(420px, 92%);
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(6px);
    border-radius: 18px;
    padding: 18px 18px 16px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .25);
}

.login-card__title {
    font-size: 22px;
    color: #111827;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: left;
}

/* FORM */
.form {
    display: grid;
    gap: 5px;
    text-align: left;
}

.field {
    display: grid;
    gap: 6px;
}

label {
    font-size: 14px;
    color: #334155;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    outline: none;
    background: #ffffff;
}

input:focus {
    border-color: #1f6ea8;
}

/* BUTTON */
.btn {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
}

.btn--primary {
    background: #1f6ea8;
    color: white;
}

.btn--primary:hover {
    filter: brightness(.95);
}

/* Alerts */
.alerts {
    margin-top: 16px;
    display: grid;
    gap: 8px;
}

.alert {
    width: min(520px, 92%);
    margin: 14px auto 0;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

/* ✅ MOBILE: acá está la clave para que “entre todo” */
@media (max-width: 520px) {
    :root {
        --nav-h: 64px;
        /* navbar más chica */
        --brand-h: 34px;
        /* logo más chico */
    }

    .nav__container {
        padding: 0 6px;
    }

    .hero__content {
        padding: 26px 0;
        /* menos alto */
        width: 92%;
    }

    .hero__title {
        font-size: 34px;
        /* más compacto */
        line-height: 1.06;
    }

    .hero__subtitle {
        font-size: 14px;
        margin-top: 10px;
    }

    .login-card {
        margin-top: 18px;
        border-radius: 16px;
        padding: 14px;
    }

    .login-card__title {
        font-size: 18px;
    }

    input {
        padding: 11px;
        border-radius: 12px;
    }

    .btn {
        padding: 11px 14px;
        font-size: 15px;
    }

    /* Si en algún momento volvés a usar menú, que no rompa */
    .menu {
        gap: 14px;
    }

    .menu__link {
        font-size: 14px;
    }
}

/* Extra: evita “zoom” raro en iPhone cuando inputs <16px */
@media (max-width: 520px) {

    input,
    button {
        font-size: 16px;
    }
}

.help {
    font-size: 14px;
    color: #334155;
    font-size: 14px;
}

footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    font-size: 0.9rem;
    color: #060404;
    border-top: 1px solid #ccc;
    padding: 10px 0;
    background: white;
    z-index: 10;
}