/**
 * Register Page Styles
 */

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Fundo ── */
.bg-register-bg {
    background: linear-gradient(135deg, #0a2a6e 0%, #1152d4 45%, #1e3a8a 75%, #0f172a 100%);
}

/* Grid sutil no fundo */
.bg-grid-pattern {
    background-image:
        linear-gradient(rgba(255,255,255,1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* ── Orbes decorativos ── */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.orb-1 {
    width: 500px; height: 500px;
    top: -120px; left: -100px;
    background: radial-gradient(circle, rgba(99,102,241,0.5) 0%, transparent 70%);
    animation: orb-drift 12s ease-in-out infinite alternate;
}
.orb-2 {
    width: 400px; height: 400px;
    bottom: -80px; right: -80px;
    background: radial-gradient(circle, rgba(59,130,246,0.45) 0%, transparent 70%);
    animation: orb-drift 16s ease-in-out infinite alternate-reverse;
}
.orb-3 {
    width: 300px; height: 300px;
    top: 50%; left: 60%;
    background: radial-gradient(circle, rgba(139,92,246,0.3) 0%, transparent 70%);
    animation: orb-drift 10s ease-in-out infinite alternate;
}

@keyframes orb-drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, 20px) scale(1.08); }
}

/* ── Card do formulário ── */
.register-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: card-enter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dark .register-card {
    background: rgba(15, 23, 42, 0.92);
}

@keyframes card-enter {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ── Força da senha ── */
.strength-fill {
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.35s ease;
}
[data-strength="1"] .strength-fill { background-color: #ef4444; }
[data-strength="2"] .strength-fill { background-color: #f97316; }
[data-strength="3"] .strength-fill { background-color: #3b82f6; }
[data-strength="4"] .strength-fill { background-color: #22c55e; }

/* Requisito cumprido */
.req-hint.met {
    color: #22c55e;
}
.req-hint.met .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}

/* ── Match indicator ── */
#match-indicator.match-ok  { color: #16a34a; }
#match-indicator.match-err { color: #dc2626; }

/* ── Mobile scroll ── */
@media (max-width: 640px) {
    body { overflow-y: auto; }
}
