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

* { box-sizing: border-box; }

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

/* ── Glows decorativos ─────────────────────────────────────── */
.rg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
}
.rg-glow-1 {
    width: 520px; height: 520px;
    background: #f9d423;
    top: -200px; right: -160px;
    opacity: .13;
}
.rg-glow-2 {
    width: 460px; height: 460px;
    background: #99f2c8;
    bottom: -170px; left: -130px;
    opacity: .17;
}

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

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

/* ── Icon badge ────────────────────────────────────────────── */
.rg-icon-badge {
    width: 54px; height: 54px;
    border-radius: 16px;
    background: rgba(249, 212, 35, .18);
    border: 1px solid rgba(249, 212, 35, .30);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9d423;
    margin-bottom: 18px;
}

/* ── Encabezado ────────────────────────────────────────────── */
.rg-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -.3px;
}
.rg-desc {
    color: rgba(255, 255, 255, .58);
    font-size: 14px;
    margin: 0 0 26px;
    line-height: 1.55;
}

/* ── Grid de campos ────────────────────────────────────────── */
.rg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}
.rg-full { grid-column: 1 / -1; }

/* ── Separador de sección ──────────────────────────────────── */
.rg-section-label {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: rgba(255, 255, 255, .38);
    margin-top: 6px;
}
.rg-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, .10);
}
.rg-optional-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .38);
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* ── Grupo de campo ────────────────────────────────────────── */
.rg-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ── Label ─────────────────────────────────────────────────── */
.rg-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: rgba(255, 255, 255, .60);
}

/* ── Input / Select ────────────────────────────────────────── */
.rg-input,
.rg-select {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255, 255, 255, .08);
    border: 1.5px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .18s, background .18s, box-shadow .18s;
}
.rg-input::placeholder { color: rgba(255, 255, 255, .28); }
.rg-input:focus,
.rg-select:focus {
    border-color: rgba(249, 212, 35, .60);
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 0 0 3px rgba(249, 212, 35, .10);
}
.rg-input.has-toggle { padding-right: 44px; }

/* ── Select ────────────────────────────────────────────────── */
.rg-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.45)'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 38px;
}
.rg-select option { background: #1a3a2a; color: #fff; }

/* ── Input con botón ojo ───────────────────────────────────── */
.rg-input-wrap { position: relative; }
.rg-eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, .40);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color .15s;
}
.rg-eye-btn:hover { color: rgba(255, 255, 255, .85); }

/* ── Barra de fortaleza de contraseña ──────────────────────── */
.rg-strength {
    display: none;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
}
.rg-strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .14);
    transition: background .25s;
}
.rg-strength-bar.weak   { background: #ef4444; }
.rg-strength-bar.medium { background: #f59e0b; }
.rg-strength-bar.strong { background: #22c55e; }
.rg-strength-label {
    font-size: 11px;
    font-weight: 700;
    min-width: 44px;
    text-align: right;
}
.rg-strength-label.weak   { color: #f87171; }
.rg-strength-label.medium { color: #fbbf24; }
.rg-strength-label.strong { color: #4ade80; }

/* ── Checkbox términos ─────────────────────────────────────── */
.rg-check-group {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
}
.rg-check-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 1px;
    accent-color: #f9d423;
    cursor: pointer;
}
.rg-check-text {
    font-size: 13px;
    color: rgba(255, 255, 255, .68);
    line-height: 1.55;
}
.rg-check-text a {
    color: #f9d423;
    text-decoration: none;
    font-weight: 600;
}
.rg-check-text a:hover { text-decoration: underline; }

/* ── Botón principal ───────────────────────────────────────── */
.rg-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: #f9d423;
    color: #1a3a2a;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, transform .1s, box-shadow .15s;
    letter-spacing: .1px;
}
.rg-btn:hover:not(:disabled) {
    background: #fbdf57;
    box-shadow: 0 4px 22px rgba(249, 212, 35, .38);
}
.rg-btn:active:not(:disabled) { transform: scale(.98); }
.rg-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* ── Alerta de respuesta ───────────────────────────────────── */
.rg-alert {
    display: none;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.5;
}
.rg-alert.ok {
    display: flex;
    background: rgba(34, 197, 94, .15);
    border: 1px solid rgba(34, 197, 94, .32);
    color: #86efac;
}
.rg-alert.err {
    display: flex;
    background: rgba(239, 68, 68, .15);
    border: 1px solid rgba(239, 68, 68, .32);
    color: #fca5a5;
}

/* ── Divisor ───────────────────────────────────────────────── */
.rg-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .28);
    font-size: 12px;
    margin-top: 20px;
}
.rg-divider::before,
.rg-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, .11);
}

/* ── Links de pie ──────────────────────────────────────────── */
.rg-links {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .52);
    margin-top: 14px;
}
.rg-links a {
    color: #f9d423;
    text-decoration: none;
    font-weight: 700;
}
.rg-links a:hover { text-decoration: underline; }

/* ── Móvil ≤ 600px ─────────────────────────────────────────── */
@media (max-width: 600px) {
    .rg-page {
        justify-content: flex-start;
        padding: 28px 12px 80px;
    }
    .rg-card {
        padding: 24px 18px 24px;
        border-radius: 20px;
    }
    .rg-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .rg-title { font-size: 21px; }
    .rg-desc  { margin-bottom: 20px; }
}
