* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Pitch Black Background Gradient --- */
:root {
    --bg-base: #050508;
    --color-primary: #41f101;
    --color-secondary: #47d406;
    --blur-radius: 100px;
    --pointer-x: 50%;
    --pointer-y: 50%;
    --pointer-glow-opacity: 0;
}

a{
    text-decoration: none;
    color: #0f4b39;
}

body {
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-base);
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.animated-background {
    position: fixed;
    top: 0%;
    left: -10%;
    width: min(300vw, 720px);
    aspect-ratio: 1;
    z-index: 0;
    background-image: url("../inicio/img/sem-titulo2.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    transform-origin: center;
    animation: rodar 160s linear infinite;
}

@keyframes rodar {
    to {
        transform: rotate(360deg);
    }
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: var(--pointer-glow-opacity);
    background: radial-gradient(380px circle at var(--pointer-x) var(--pointer-y),
            rgba(36, 226, 18, 0.3),
            rgba(59, 234, 29, 0.12) 42%,
            transparent 75%);
    transition: opacity 250ms ease;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 34rem 30rem at 0% 0%, rgba(92, 246, 110, 0.22), transparent 72%),
        radial-gradient(ellipse 32rem 28rem at 100% 100%, rgba(167, 212, 6, 0.2), transparent 72%);
}

/* Ambient Animated Glow Blob 1 */
.dark-glow-1 {
    position: fixed;
    top: -10vw;
    left: -10vw;
    width: 55vw;
    height: 55vw;
    border-radius: 50%;
    background: #14532d;
    filter: blur(var(--blur-radius));
    animation: floatOrb 18s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Ambient Animated Glow Blob 2 */
.dark-glow-2 {
    position: fixed;
    bottom: -10vw;
    right: -10vw;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: var(--color-secondary);
    filter: blur(calc(var(--blur-radius) * 1.2));
    animation: floatOrb 22s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(60px, -40px) scale(1.1);
    }
}

.card {
    position: relative;
    z-index: 1;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, #1d1c1cd7, #111010);
    backdrop-filter: blur(10px);
    border: 1px solid #4c4e50;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: center;
}

h5 {
    text-align: center;
    margin-top: 5%;
    font-weight: 400;
    color: #b3b7bb;
}

p.subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 24px;
    text-align: center;
}

.iconF {
    background: rgba(255, 255, 255, 0.151);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.112);
    display: flex;
    width: 80px;
    height: 80px;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 300%;
    margin: 10px auto 0;
    margin-bottom: 8%;
    align-self: center;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 0.85rem;
    color: #f8fafc;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    background: #29292aaa;
    border: 1px solid #ffffff33;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: 0.2s ease-in-out;
}

input[type="email"]:focus {
    border-color: #145944;
    background-color: rgba(49, 48, 48, 0.812);
}

/* Inputs de 6 dígitos */
.otp-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 8px;
    color: #0fc859;
    outline: none;
}

.otp-input:focus {
    border-color: #14532d;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.btn {
    width: 100%;
    padding: 12px;
    background: #145944;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: #0f4b39;
}

.btn:disabled {
    background: #475569;
    cursor: not-allowed;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    text-align: center;
    display: none;
}

.alert-error {
    background: #450a0a;
    color: #fca5a5;
    border: 1px solid #7f1d1d;
}

.alert-success {
    background: #052e16;
    color: #86efac;
    border: 1px solid #14532d;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.user-area {
    text-align: center;
}

.user-area img {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: visibility 0s linear 1.1s;
}

.loader-overlay.is-hidden {
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: opacity 200ms ease;
}

.loader-emblem {
    position: relative;
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
}

.loader-emblem::after,
.loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.loader-emblem::after {
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.loader-ring {
    border: 2px solid transparent;
    border-top-color: #fff;
    border-right-color: rgba(255, 255, 255, 0.45);
    animation: loader-orbit 1.8s cubic-bezier(0.6, 0.1, 0.4, 0.9) infinite;
}

.loader-logo {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    object-fit: contain;
    animation: loader-float 2.2s ease-in-out infinite;
}

@keyframes loader-orbit {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loader-float {
    50% {
        transform: translateY(-3px) scale(1.04);
    }
}

.loader-overlay.is-hidden .loader-content {
    opacity: 0;
}

.strip {
    position: absolute;
    top: 0;
    height: 100%;
    width: 25.5%;
    background: #14532d;
    transition: transform 800ms cubic-bezier(0.77, 0, 0.175, 1);
}

.strip-1 {
    left: 0%;
}

.strip-2 {
    left: 25%;
}

.strip-3 {
    left: 50%;
}

.strip-4 {
    left: 75%;
}

.loader-overlay.is-hidden .strip-1 {
    transform: scaleY(0);
    transform-origin: top;
    transition-delay: 0ms;
}

.loader-overlay.is-hidden .strip-2 {
    transform: scaleY(0);
    transform-origin: bottom;
    transition-delay: 100ms;
}

.loader-overlay.is-hidden .strip-3 {
    transform: scaleY(0);
    transform-origin: top;
    transition-delay: 200ms;
}

.loader-overlay.is-hidden .strip-4 {
    transform: scaleY(0);
    transform-origin: bottom;
    transition-delay: 300ms;
}