/* ══════════════════════════════════════
   REGISTER PAGE
══════════════════════════════════════ */
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #e8f5f3;
    padding: 20px;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(13,148,136,.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(20,184,166,.08) 0%, transparent 55%);
    z-index: 0;
}

/* ══════════════════════════════════════
   OVERLAY DE CREACIÓN
══════════════════════════════════════ */
.creation-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.creation-overlay.active {
    display: flex;
}

.creation-card {
    background: #fff;
    border-radius: 28px;
    padding: 48px 44px 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 32px 80px rgba(0,0,0,.20);
    text-align: center;
    animation: cardPop .4s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes cardPop {
    from { opacity:0; transform:scale(.88) translateY(20px); }
    to   { opacity:1; transform:scale(1) translateY(0); }
}

/* ── Logo spinner ── */
.logo-spinner {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 28px;
}

.logo-spinner img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    position: absolute;
    inset: 0;
    object-fit: contain;
}

.spinner-ring {
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 4px solid #e2f8f4;
    border-top-color: #1abc9c;
    animation: spin .9s linear infinite;
}

.spinner-ring-2 {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    border: 3px solid #e2f8f4;
    border-bottom-color: #0d9488;
    animation: spin 1.6s linear infinite reverse;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Títulos ── */
.creation-title {
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -.3px;
}

.creation-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 32px;
}

/* ══════════════════════════════════════
   STEPS LIST
══════════════════════════════════════ */
.steps-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: left;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border-radius: 12px;
    margin-bottom: 6px;
    transition: background .3s, transform .3s, border-color .3s;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.step-item.active {
    background: #f0fdf9;
    border-color: #a7f3d0;
    transform: translateX(5px);
}

.step-item.done {
    background: #f0fdf9;
    border-color: #a7f3d0;
}

.step-item.error {
    background: #fff5f5;
    border-color: #fecaca;
}

/* ── Ícono del step ── */
.step-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    background: #e2e8f0;
    color: #94a3b8;
    transition: background .3s, color .3s;
}

.step-item.active .step-icon {
    background: #d1fae5;
    color: #059669;
    animation: iconPulse .9s infinite;
}

.step-item.done .step-icon {
    background: #d1fae5;
    color: #059669;
}

.step-item.error .step-icon {
    background: #fee2e2;
    color: #dc2626;
}

@keyframes iconPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(5,150,105,.3); }
    50%      { box-shadow: 0 0 0 7px rgba(5,150,105,0); }
}

/* ── Textos del step ── */
.step-content { flex: 1; }

.step-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.step-item.active .step-name { color: #059669; }
.step-item.error  .step-name { color: #dc2626; }

.step-desc {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

/* ── Status dot ── */
.status-dot {
    font-size: 14px;
    color: #e2e8f0;
    transition: color .3s;
}

.status-dot.done  { color: #059669; }
.status-dot.error { color: #dc2626; }

/* ══════════════════════════════════════
   BARRA DE PROGRESO
══════════════════════════════════════ */
.creation-progress-wrap {
    height: 8px;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.creation-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1abc9c, #0d9488);
    border-radius: 8px;
    transition: width .5s ease;
}

.creation-progress-label {
    font-size: 12px;
    font-weight: 700;
    color: #1abc9c;
    text-align: right;
}

/* ── Botones OAuth ── */
.btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s ease;
    margin-bottom: 10px;
    border: none;
    cursor: pointer;
}

.btn-google {
    background: #ffffff;
    color: #3c4043;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
    color: #3c4043;
    text-decoration: none;
    transform: translateY(-1px);
}
/* ══════════════════════════════════════
   VALIDADOR DE CONTRASEÑA
══════════════════════════════════════ */
.pass-strength-wrap {
    display: none;
    margin-top: 10px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, .20);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.20);
}

.pass-rule {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.55);
    padding: 5px 0;
    transition: color .2s;
}

.pass-rule .rule-dot {
    font-size: 11px;
    color: rgba(255,255,255,.3);
    transition: color .2s;
    width: 14px;
    flex-shrink: 0;
}

/* ✅ Cumple — blanco puro con check sólido */
.pass-rule.rule-ok {
    color: #ffffff;
}

.pass-rule.rule-ok .rule-dot {
    color: #ffffff;
}

/* ❌ No cumple — rojo más saturado y visible sobre verde */
.pass-rule.rule-fail {
    color: #fca5a5;
}

.pass-rule.rule-fail .rule-dot {
    color: #fca5a5;
}

/* ══════════════════════════════════════
   OTP
══════════════════════════════════════ */
.otp-header {
    text-align: center;
    margin-bottom: 28px;
}

.otp-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px;
    color: #fff;
}

.otp-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.otp-desc {
    font-size: 13px;
    color: rgba(255,255,255,.7);
    line-height: 1.6;
}

.otp-desc strong {
    color: #fff;
    font-weight: 700;
}

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}

.otp-input {
    width: 48px;
    height: 58px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    outline: none;
    transition: border-color .2s, background .2s;
    caret-color: transparent;
}

.otp-input:focus {
    border-color: #fff;
    background: rgba(255,255,255,.2);
}

.otp-input.input-error {
    border-color: #f87171 !important;
    background: rgba(248,113,113,.15) !important;
}

.otp-resend {
    text-align: center;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-resend {
    background: none;
    border: none;
    color: rgba(255,255,255,.9);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    transition: background .2s;
    text-decoration: underline;
}

.btn-resend:hover:not(:disabled) {
    background: rgba(255,255,255,.1);
}

.btn-resend:disabled {
    color: rgba(255,255,255,.4);
    cursor: default;
    text-decoration: none;
}

/* ── Botones OAuth ── */
.btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s ease;
    border: none;
    cursor: pointer;
}

.btn-google {
    background: #ffffff;
    color: #3c4043;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
    color: #3c4043;
    text-decoration: none;
    transform: translateY(-1px);
}