/* Login / Registro - D-Mell'O Studios */

body {
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    background: #000;
}

#dotMatrix { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.gradient-overlay {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background:
        radial-gradient(circle at center, rgba(0,0,0,0.75) 0%, transparent 100%),
        linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 33%);
}

.login-navbar {
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
    z-index: 20; padding: 12px 24px;
    background: rgba(31, 31, 31, 0.35);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.login-container {
    position: relative; z-index: 10;
    display: flex; flex-direction: column; align-items: center;
    min-height: 100vh;
    padding: 110px 24px 60px;
}

/* Tabs */
.login-tabs {
    display: flex; gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 6px;
    margin-bottom: 2.5rem;
}

.tab {
    padding: 10px 22px;
    border: none; border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600; font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s;
}

.tab i { margin-right: 6px; }

.tab.active {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 16px rgba(147, 51, 234, 0.45);
}

.login-step { width: 100%; max-width: 460px; }
#step-register { max-width: 640px; }

.login-content { text-align: center; }

.login-content h1 {
    font-family: 'Sora', sans-serif;
    font-size: 2.4rem; font-weight: 800;
    color: #fff; margin-bottom: 8px;
}

.subtitle { color: rgba(255, 255, 255, 0.55); font-size: 1.1rem; margin-bottom: 2rem; }

/* Input código con botón */
.input-group { position: relative; width: 100%; }

.input-group input {
    width: 100%;
    padding: 16px 60px 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
}

.input-group input:focus { outline: none; border-color: rgba(192, 132, 252, 0.6); }
.input-group input::placeholder { color: rgba(255, 255, 255, 0.25); letter-spacing: 1px; font-weight: 400; }

.btn-submit {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none; border-radius: 50%;
    color: #fff; font-size: 1.2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s;
}
.btn-submit:hover { transform: translateY(-50%) scale(1.08); }

.login-error { color: #f87171; margin-top: 1rem; font-size: 0.9rem; min-height: 1.2em; }

.login-footer { margin-top: 2.5rem; }
.login-footer p { color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; }
.login-footer a { color: #c084fc; text-decoration: underline; }

/* Caja de registro (cristal) */
.register-box { max-height: none; }

/* Código grande de éxito */
.big-code {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: 2.2rem; font-weight: 800;
    letter-spacing: 4px;
    padding: 18px 40px;
    border-radius: 16px;
    margin: 1rem 0 1.5rem;
    box-shadow: 0 10px 40px rgba(147, 51, 234, 0.5);
}

.btn-dashboard {
    width: 100%;
    padding: 14px 24px;
    background: #fff; border: none; border-radius: 999px;
    color: #000; font-weight: 700; font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-dashboard:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,0.25); }

@media (max-width: 640px) {
    .login-content h1 { font-size: 1.8rem; }
    .big-code { font-size: 1.6rem; padding: 14px 28px; }
}