/* Login de usuario público — Mapa MuDi (standalone, no depende de mapa.css) */
* { box-sizing: border-box; margin: 0; padding: 0; }

.mapa-user-login-page {
    min-height: 100vh;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #0f172a 100%);
    font-family: 'Inter', system-ui, sans-serif;
    color: #1e293b;
}

.mapa-user-login-wrap {
    width: 100%;
    max-width: 420px;
}
.mapa-user-login-wrap.mapa-user-login-split {
    max-width: 920px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.mapa-user-promo {
    background: linear-gradient(160deg, #1e3a8a 0%, #0f172a 55%, #172554 100%);
    color: #e2e8f0;
    padding: 28px 26px;
}
.mapa-user-promo-inner { height: 100%; display: flex; flex-direction: column; }
.mapa-user-promo-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 12px;
}
.mapa-user-promo h2 {
    font-size: 1.45rem;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 10px;
}
.mapa-user-promo-lead {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.45;
    margin: 0 0 18px;
}
.mapa-user-promo-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 18px;
    padding: 0;
}
.mapa-user-promo-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.84rem;
    line-height: 1.4;
    color: #e2e8f0;
}
.mapa-user-promo-list i {
    color: #60a5fa;
    margin-top: 2px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}
.mapa-user-promo-box {
    margin-top: auto;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(148,163,184,0.25);
    border-radius: 12px;
    padding: 14px;
}
.mapa-user-promo-box strong {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.88rem;
}
.mapa-user-promo-box p {
    margin: 8px 0 10px;
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.4;
}
.mapa-user-promo-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #93c5fd;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}
.mapa-user-promo-link:hover { color: #bfdbfe; }

.mapa-user-login-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.mapa-user-login-split .mapa-user-login-card {
    border-radius: 0;
    box-shadow: none;
    padding: 28px 26px 22px;
}

@media (max-width: 820px) {
    .mapa-user-login-wrap.mapa-user-login-split {
        grid-template-columns: 1fr;
        max-width: 440px;
    }
    .mapa-user-promo {
        padding: 20px 18px 16px;
    }
    .mapa-user-promo h2 { font-size: 1.2rem; }
    .mapa-user-promo-list { gap: 10px; margin-bottom: 12px; }
}

.mapa-user-login-brand {
    text-align: center;
    margin-bottom: 18px;
}
.mapa-user-login-brand img {
    max-width: 160px;
    height: auto;
    margin-bottom: 10px;
}
.mapa-user-login-brand h1 {
    font-size: 1.25rem;
    color: #0f172a;
    margin: 0 0 6px;
}
.mapa-user-login-brand p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.mapa-user-alert {
    font-size: 0.85rem;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mapa-user-alert.err {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}
.mapa-user-alert.ok {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.mapa-user-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}
.mapa-user-tab {
    border: 2px solid #e2e8f0;
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #64748b;
    cursor: pointer;
}
.mapa-user-tab.active {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1d4ed8;
}

.mapa-user-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin: 10px 0 4px;
}
.mapa-user-form input[type="text"],
.mapa-user-form input[type="email"],
.mapa-user-form input[type="tel"],
.mapa-user-form input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
}
.mapa-user-form input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.mapa-pass-wrap {
    position: relative;
}
.mapa-pass-wrap input {
    padding-right: 42px !important;
}
.mapa-toggle-pass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
}
.mapa-toggle-pass:hover { color: #3b82f6; }

.mapa-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.mapa-forgot-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}
.mapa-forgot-link:hover { text-decoration: underline; }

.mapa-forgot-panel h3 {
    font-size: 1.1rem;
    color: #0f172a;
    margin: 0 0 6px;
}
.mapa-forgot-panel p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 12px;
    line-height: 1.4;
}
.mapa-forgot-panel label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin: 0 0 4px;
}
.mapa-forgot-panel input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 10px;
}
.mapa-user-btn.ghost {
    background: #f1f5f9;
    color: #475569;
}

.mapa-user-remember {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-top: 12px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    cursor: pointer;
}
.mapa-user-remember input {
    width: 18px;
    height: 18px;
}

.mapa-user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    margin-top: 14px;
}
.mapa-user-btn.primary {
    background: #3b82f6;
    color: #fff;
}
.mapa-user-btn.primary:hover { background: #2563eb; }
.mapa-user-btn.google {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155;
}
.mapa-user-btn.google:hover { background: #f8fafc; }
.mapa-user-btn.google.muted,
.mapa-user-btn.google:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.mapa-tipo-tabs a.mapa-user-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mapa-user-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 4px;
    color: #94a3b8;
    font-size: 0.8rem;
}
.mapa-user-divider::before,
.mapa-user-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.mapa-user-note {
    font-size: 0.72rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 6px;
}
.mapa-user-hint {
    display: block;
    font-size: 0.75rem;
    margin-top: 2px;
    color: #94a3b8;
}
.mapa-user-hint.ok { color: #10b981; }
.mapa-user-hint.bad { color: #ef4444; }

.mapa-user-footer-links {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.8rem;
}
.mapa-user-footer-links a {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
}
.mapa-user-footer-links a:hover { color: #3b82f6; }
