/* ================================================================
   recuperar.css — Secret Maps
   Glassmorphism · diseño centrado · responsive
   ================================================================ */

* { box-sizing: border-box; }

/* ── Page ────────────────────────────────────────────────────── */
.rc-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px 32px;
    position: relative;
    overflow-x: hidden;
}

/* ── Glows decorativos ───────────────────────────────────────── */
.rc-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}
.rc-glow-1 {
    width: 480px; height: 480px;
    background: #f9d423;
    top: -170px; right: -130px;
    opacity: .16;
}
.rc-glow-2 {
    width: 420px; height: 420px;
    background: #99f2c8;
    bottom: -150px; left: -110px;
    opacity: .20;
}

/* ── Logo ────────────────────────────────────────────────────── */
.rc-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 17px;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    margin-bottom: 26px;
    position: relative;
    z-index: 2;
    letter-spacing: -.2px;
    transition: opacity .15s;
}
.rc-logo:hover { opacity: .80; }
.rc-logo svg { fill: var(--accent, #f9d423); }

/* ── Card ────────────────────────────────────────────────────── */
.rc-card {
    width: min(440px, 100%);
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 26px;
    padding: 36px 32px 30px;
    box-shadow: 0 28px 64px rgba(0, 0, 0, .30);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    z-index: 2;
}

/* ── Indicadores de paso ─────────────────────────────────────── */
.rc-steps {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 22px;
}
.rc-step-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .20);
    transition: background .25s, transform .25s;
}
.rc-step-dot.active {
    background: var(--accent, #f9d423);
    transform: scale(1.25);
}
.rc-step-dot.done { background: rgba(52, 211, 153, .65); }
.rc-step-line {
    flex: 1; height: 2px;
    background: rgba(255, 255, 255, .10);
    border-radius: 1px;
}

/* ── Icono de paso ───────────────────────────────────────────── */
.rc-icon-badge {
    width: 54px; height: 54px;
    border-radius: 16px;
    background: rgba(249, 212, 35, .13);
    border: 1px solid rgba(249, 212, 35, .26);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--accent, #f9d423);
}

/* ── Títulos y descripción ───────────────────────────────────── */
.rc-title {
    margin: 0 0 8px;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -.3px;
    color: #fff;
}
.rc-desc {
    margin: 0 0 22px;
    font-size: 14px;
    color: rgba(255, 255, 255, .60);
    line-height: 1.65;
}

/* ── Grupos de campo ─────────────────────────────────────────── */
.rc-group { margin-bottom: 16px; }

.rc-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .2px;
    color: rgba(255, 255, 255, .80);
}
.rc-label svg { opacity: .65; flex-shrink: 0; }

.rc-input-wrap { position: relative; }

.rc-input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, .18);
    background: rgba(0, 0, 0, .18);
    color: #fff;
    font: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.rc-input:focus {
    border-color: rgba(249, 212, 35, .60);
    box-shadow: 0 0 0 4px rgba(249, 212, 35, .14);
}
.rc-input::placeholder { color: rgba(255, 255, 255, .30); }
.rc-input.has-toggle   { padding-right: 50px; }
.rc-input.input-err    { border-color: rgba(248, 113, 113, .55); }

/* ── Botón mostrar/ocultar contraseña ────────────────────────── */
.rc-eye-btn {
    position: absolute;
    right: 13px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: rgba(255, 255, 255, .42);
    cursor: pointer; padding: 4px;
    display: flex; align-items: center;
    transition: color .15s;
    border-radius: 8px;
}
.rc-eye-btn:hover { color: #fff; }

/* ── Barra de fortaleza ──────────────────────────────────────── */
.rc-strength {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 9px;
}
.rc-strength-bar {
    flex: 1; height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .12);
    transition: background .25s;
}
.rc-strength-bar.weak   { background: #ef4444; }
.rc-strength-bar.medium { background: #f97316; }
.rc-strength-bar.strong { background: #22c55e; }
.rc-strength-label {
    font-size: 11px; font-weight: 700;
    margin-left: 4px; min-width: 52px;
    color: rgba(255, 255, 255, .42);
    text-align: right;
}
.rc-strength-label.weak   { color: #f87171; }
.rc-strength-label.medium { color: #fb923c; }
.rc-strength-label.strong { color: #4ade80; }

/* ── Error de campo ──────────────────────────────────────────── */
.rc-field-err {
    font-size: 12px;
    color: #f87171;
    margin: 5px 0 0;
    display: none;
    line-height: 1.3;
}

/* ── Botón principal ─────────────────────────────────────────── */
.rc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 14px;
    border: none;
    background: var(--accent, #f9d423);
    color: #1f4037;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: .1px;
    text-decoration: none;
    transition: background .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 6px 22px rgba(249, 212, 35, .26);
    margin-top: 10px;
}
.rc-btn:hover  { background: #ffe040; box-shadow: 0 8px 28px rgba(249, 212, 35, .38); }
.rc-btn:active { transform: scale(.98); }
.rc-btn:disabled { opacity: .58; cursor: not-allowed; transform: none; }

/* ── Spinner dentro del botón ────────────────────────────────── */
.rc-spinner {
    width: 16px; height: 16px;
    border: 2.5px solid rgba(31, 64, 55, .25);
    border-top-color: #1f4037;
    border-radius: 50%;
    animation: rcSpin .7s linear infinite;
    display: none;
    flex-shrink: 0;
}
@keyframes rcSpin { to { transform: rotate(360deg); } }

/* ── Mensajes de alerta ──────────────────────────────────────── */
.rc-alert {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 13px;
    font-size: 13.5px;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(0, 0, 0, .18);
    display: none;
    align-items: flex-start;
    gap: 9px;
}
.rc-alert svg { flex-shrink: 0; margin-top: 1px; }
.rc-alert.ok {
    display: flex;
    border-color: rgba(52, 211, 153, .35);
    color: #a7f3d0;
}
.rc-alert.err {
    display: flex;
    border-color: rgba(248, 113, 113, .35);
    color: #fca5a5;
}

/* ── Divisor ─────────────────────────────────────────────────── */
.rc-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0;
}
.rc-divider::before,
.rc-divider::after {
    content: '';
    flex: 1; height: 1px;
    background: rgba(255, 255, 255, .10);
}
.rc-divider span {
    font-size: 11.5px;
    color: rgba(255, 255, 255, .34);
}

/* ── Links inferiores ────────────────────────────────────────── */
.rc-links {
    text-align: center;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .52);
}
.rc-links p + p { margin-top: 7px; }
.rc-links a {
    color: var(--accent, #f9d423);
    font-weight: 700;
    text-decoration: none;
}
.rc-links a:hover { text-decoration: underline; }

/* ── Estado de éxito ─────────────────────────────────────────── */
.rc-success-icon {
    width: 70px; height: 70px;
    border-radius: 20px;
    background: rgba(34, 197, 94, .13);
    border: 1px solid rgba(34, 197, 94, .28);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #4ade80;
    animation: rcPop .32s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes rcPop {
    from { transform: scale(.65); opacity: 0; }
    to   { transform: scale(1);  opacity: 1; }
}
.rc-success-title {
    text-align: center;
    font-size: 22px; font-weight: 900;
    margin-bottom: 10px; color: #fff;
}
.rc-success-desc {
    text-align: center;
    color: rgba(255, 255, 255, .58);
    font-size: 14.5px;
    line-height: 1.65;
    margin-bottom: 24px;
}

/* ── Responsive: móvil ───────────────────────────────────────── */
@media (max-width: 600px) {
    .rc-page {
        justify-content: flex-start;
        padding: 36px 14px 32px;
    }
    .rc-card {
        padding: 24px 18px 22px;
        border-radius: 20px;
    }
    .rc-title { font-size: 20px; }
}
