@import 'colors.css';

/* ============================================================
   MODALES DE MIEMBROS — base compartida
   ------------------------------------------------------------
   La caja (.legal-modal) viene de footer.css. Acá va todo lo
   propio de los modales de miembro: "Recuperar mi tarjeta" y
   "Acceso de miembros". Prefijo .mm- = member modal.
   ============================================================ */

.mm-modal { max-width: 460px; }

/* ---------- Encabezado ---------- */
.mm-badge {
    width: 54px; height: 54px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azul2) 0%, var(--downriver) 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px;
    box-shadow: 0 8px 20px rgba(1, 94, 137, 0.28);
}
.mm-modal .legal-modal-update {
    color: var(--pale-sky);
    font-size: 13px; line-height: 1.5;
    max-width: 330px; margin-left: auto; margin-right: auto;
}

/* ---------- Campos ---------- */
.mm-field { margin-bottom: 16px; }
.mm-field label {
    display: block;
    font-size: 12.5px; font-weight: 600;
    color: var(--downriver);
    margin-bottom: 7px;
    font-family: "MiFuente", sans-serif;
}

.mm-input-wrap { position: relative; }
.mm-input-ic {
    position: absolute;
    left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--nepal); font-size: 14px;
    pointer-events: none;
    transition: color .2s ease;
}
.mm-form input[type="text"],
.mm-form input[type="email"],
.mm-form input[type="password"] {
    width: 100%;
    padding: 13px 14px 13px 40px;
    border: 1px solid var(--geyser);
    border-radius: 10px;
    font-size: 14px;
    color: var(--downriver);
    background: #fff;
    font-family: "MiFuente", sans-serif;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.mm-form input::placeholder { color: #b6c2ce; }
.mm-form input:focus {
    outline: none;
    border-color: var(--azul2);
    box-shadow: 0 0 0 3px rgba(2, 98, 140, 0.12);
}
.mm-input-wrap:focus-within .mm-input-ic { color: var(--azul2); }

.mm-hint {
    margin: 7px 0 0;
    font-size: 11.5px; color: var(--pale-sky);
    font-family: "MiFuente", sans-serif;
}

/* ---------- Botón ---------- */
.mm-submit {
    width: 100%;
    padding: 13px 18px;
    border: none; border-radius: 10px;
    background: linear-gradient(135deg, var(--azul2) 0%, var(--downriver) 100%);
    color: #fff;
    font-size: 14.5px; font-weight: 600; letter-spacing: .2px;
    cursor: pointer;
    font-family: "MiFuente", sans-serif;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.mm-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(1, 94, 137, 0.3); }
.mm-submit:active { transform: translateY(0); }

/* Mientras no exista el flujo real, el botón se ve pero no promete nada */
.mm-form[data-design-only] .mm-submit {
    filter: grayscale(0.45); opacity: 0.75; cursor: not-allowed;
}
.mm-form[data-design-only] .mm-submit:hover { transform: none; box-shadow: none; }

/* ---------- Aviso provisorio ---------- */
.mm-soon {
    display: flex; align-items: flex-start; gap: 10px;
    margin-top: 14px; padding: 12px 14px;
    background: #f0f7fb;
    border: 1px solid #d6e8f2;
    border-left: 3px solid var(--azul2);
    border-radius: 9px;
}
.mm-soon i { color: var(--azul2); font-size: 13px; margin-top: 2px; flex-shrink: 0; }
.mm-soon p {
    margin: 0;
    font-size: 12.5px; line-height: 1.55;
    color: var(--chathams-blue);
    font-family: "MiFuente", sans-serif;
}
.mm-soon a { color: var(--azul); font-weight: 600; text-decoration: none; white-space: nowrap; }
.mm-soon a:hover { text-decoration: underline; }

/* ---------- Pie ---------- */
.mm-help {
    margin-top: 20px; padding-top: 16px;
    border-top: 1px solid #eef2f5;
    text-align: center;
}
.mm-help h3 {
    margin: 0 0 4px;
    font-size: 13.5px; color: var(--downriver); font-weight: 700;
    font-family: "MiFuente", sans-serif;
}
.mm-help p {
    margin: 0 0 12px;
    font-size: 12.5px; color: var(--pale-sky); line-height: 1.55;
    font-family: "MiFuente", sans-serif;
}
.mm-help-cta {
    display: inline-block;
    padding: 9px 20px;
    border: 1.5px solid var(--azul2);
    border-radius: 9px;
    color: var(--azul2);
    font-size: 13px; font-weight: 600; text-decoration: none;
    font-family: "MiFuente", sans-serif;
    transition: background .2s ease, color .2s ease;
}
.mm-help-cta:hover { background: var(--azul2); color: #fff; }

/* ============================================================
   ESPECIFICO DEL LOGIN
   ============================================================ */

/* Fila: recordarme  +  olvidé mi contraseña */
.mm-row-between {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    margin: -4px 0 18px;
}
.mm-remember {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12.5px; color: var(--pale-sky);
    cursor: pointer;
    font-family: "MiFuente", sans-serif;
}
.mm-remember input {
    width: 15px; height: 15px;
    accent-color: var(--azul1);
    flex-shrink: 0;
}
.mm-forgot {
    font-size: 12.5px; font-weight: 600;
    color: var(--azul2); text-decoration: none;
    font-family: "MiFuente", sans-serif;
}
.mm-forgot:hover { text-decoration: underline; }

/* Nota de seguridad al pie del login */
.mm-secure {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    margin-top: 14px;
    font-size: 11.5px; color: var(--bermuda-gray);
    font-family: "MiFuente", sans-serif;
}
.mm-secure i { font-size: 11px; }

/* ---------- Movil ---------- */
@media (max-width: 520px) {
    .mm-modal { max-width: 100%; }
    .mm-badge { width: 46px; height: 46px; font-size: 19px; }
    .mm-soon { flex-direction: column; gap: 6px; }
    .mm-soon a { white-space: normal; }
    .mm-row-between { flex-direction: column; align-items: flex-start; gap: 10px; }
}
