/* =====================================================================
   IsFood · pantallas de acceso (login, registro, recuperar)
   ===================================================================== */
.auth-page { background: #fff; min-height: 100vh; display: flex; flex-direction: column; }

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    padding: 0 40px;
    background: #fff;
    border-bottom: 1px solid #eef0f3;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .04);
}

.auth-tools { display: flex; align-items: center; gap: 10px; }
.auth-tools details { position: relative; }
.auth-tools summary {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    list-style: none;
    cursor: pointer;
    color: #1f2937;
}
.auth-tools summary::-webkit-details-marker { display: none; }
.auth-tools summary:hover { background: var(--input); }
.help-dot {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1f2937;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.popover {
    position: absolute;
    right: 0;
    top: 44px;
    z-index: 10;
    width: 260px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    font-size: 13.5px;
    color: #374151;
}
.popover strong { display: block; margin-bottom: 4px; color: var(--text); }

.auth-main {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 530px);
    align-items: center;
    gap: 48px;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 48px 40px;
}

.auth-hero { text-align: center; }
.auth-hero img { width: 100%; max-width: 520px; height: auto; }
.auth-hero p {
    max-width: 420px;
    margin: 8px auto 0;
    color: var(--muted);
    font-size: 15px;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 34px 30px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 28px rgba(16, 24, 40, .07);
    min-height: 550px;
    display: flex;
    flex-direction: column;
}
.auth-card h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.5px;
    margin-bottom: 10px;
}
.auth-card .subtitle { margin: 0 0 40px; font-size: 19px; color: var(--muted); }
.auth-card .field { margin-bottom: 26px; }
.auth-card .input { height: 44px; border-radius: 14px; font-size: 16px; }
.auth-card .btn-primary { height: 46px; border-radius: 14px; font-size: 16.5px; font-weight: 500; }

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -8px 0 22px;
    flex-wrap: wrap;
}
.auth-row a { font-size: 14.5px; }

.auth-footer {
    margin-top: auto;
    padding-top: 36px;
    text-align: center;
    font-size: 14.5px;
}
.auth-footer a { margin-left: 12px; color: var(--red); font-weight: 600; }

.auth-card.wide { min-height: 0; }
.auth-card.wide .subtitle { margin-bottom: 26px; }
.auth-card.wide .field { margin-bottom: 16px; }

@media (max-width: 960px) {
    .auth-main { grid-template-columns: minmax(0, 1fr); padding: 28px 16px; gap: 24px; }
    .auth-hero { display: none; }
    .auth-card { max-width: 530px; width: 100%; margin: 0 auto; min-height: 0; padding: 28px 20px 24px; }
    .auth-header { padding: 0 16px; height: 68px; }
    .auth-header .brand img { width: 150px; }
    .auth-card h1 { font-size: 27px; }
    .auth-card .subtitle { margin-bottom: 28px; }
}
@media (max-width: 480px) {
    .auth-header { height: 60px; padding: 0 14px; }
    .auth-header .brand img { width: 115px; }
}
