* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    padding: 20px;
}

/* ===== FONDO GRADIENTE PREMIUM (OSCURO) ===== */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2D1B4E 0%, #1A0F2E 100%);
    z-index: 0;
}

/* ===== BURBUJAS DECORATIVAS ===== */
.bubble {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    pointer-events: none;
    z-index: 0;
    animation: floatBubble 20s infinite ease-in-out;
}

.bubble-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    background: rgba(218, 165, 32, 0.12);
    animation-delay: 0s;
}

.bubble-2 {
    width: 450px;
    height: 450px;
    bottom: -150px;
    right: -150px;
    background: rgba(218, 165, 32, 0.08);
    animation-delay: -5s;
    animation-duration: 25s;
}

.bubble-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 80%;
    background: rgba(45, 27, 78, 0.15);
    animation-delay: -10s;
    animation-duration: 18s;
}

@keyframes floatBubble {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* ===== CANVAS DE PARTÍCULAS ===== */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.25;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.container {
    width: 520px;
    max-width: 100%;
    position: relative;
    z-index: 10;
}

/* ===== TARJETA PRINCIPAL - NEUMORPHISM BLANCO ===== */
.premium-card {
    background: #ffffff;
    border-radius: 48px;
    box-shadow:
        20px 20px 40px rgba(0, 0, 0, 0.3),
        -10px -10px 30px rgba(255, 255, 255, 0.05),
        inset 1px 1px 2px rgba(255, 255, 255, 0.8),
        inset -3px -3px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.card-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0057ff, #00c3ff, #0057ff);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.card-inner {
    padding: 30px 30px 50px;
}

/* ===== HEADER ===== */
.brand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-circle {
    width: 48px;
    height: 48px;
    background: #f0f4fa;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 3px 3px 8px rgba(0, 0, 0, 0.05),
        inset -2px -2px 5px rgba(255, 255, 255, 0.8),
        5px 5px 10px rgba(0, 0, 0, 0.05);
}

.logo-circle img {
    width: 32px;
    height: auto;
    display: block;
}

.brand-name {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #0057ff, #00c3ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 2px;
}

.brand-dot {
    color: #00c3ff;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    font-size: 22px;
}

.brand-tag {
    font-size: 9px;
    font-weight: 600;
    color: #0057ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-top: 3px;
}

/* ===== BOTÓN INFO ===== */
.info-btn {
    background: #f0f4fa;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 30px;
    transition: all 0.3s ease;
    color: #0057ff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        5px 5px 12px rgba(0, 0, 0, 0.08),
        -3px -3px 8px rgba(255, 255, 255, 0.8),
        inset 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.info-btn:hover {
    color: #00c3ff;
    transform: scale(1.05);
    background: #ffffff;
    box-shadow:
        3px 3px 8px rgba(0, 0, 0, 0.06),
        -5px -5px 12px rgba(255, 255, 255, 0.9);
}

/* ===== ICONO ANIMADO NEUMORPHISM ===== */
.animated-icon {
    text-align: center;
    margin: 20px 0 15px;
}

.icon-shield {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #ffffff, #eef2f8);
    border-radius: 35px;
    box-shadow:
        12px 12px 24px rgba(0, 0, 0, 0.1),
        -8px -8px 18px rgba(255, 255, 255, 0.9),
        inset 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.icon-shield i {
    font-size: 42px;
    background: linear-gradient(135deg, #0057ff, #00c3ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: none;
}

.icon-pulse {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: radial-gradient(circle, rgba(0, 195, 255, 0.15) 0%, rgba(0, 87, 255, 0) 70%);
    border-radius: 41px;
    animation: pulseGlow 2s ease-out infinite;
}

.icon-ring {
    position: absolute;
    border-radius: 41px;
    border: 2px solid rgba(0, 195, 255, 0.4);
    animation: ringExpand 2.5s ease-out infinite;
}

.ring-1 {
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    animation-delay: 0s;
}

.ring-2 {
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    animation-delay: 0.8s;
    border-color: rgba(0, 87, 255, 0.3);
}

@keyframes ringExpand {
    0% {
        transform: scale(0.95);
        opacity: 0.6;
        border-color: #00c3ff;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
        border-color: #0057ff;
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.4;
        transform: scale(0.95);
    }

    100% {
        opacity: 0;
        transform: scale(1.3);
    }
}

/* ===== PANEL DE FORMULARIOS ===== */
.forms-panel {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===== FORM HEADER ===== */
.form-header {
    text-align: center;
    margin-bottom: 22px;
}

.form-header h3 {
    font-size: 30px;
    font-weight: 800;
    color: #1a1a2e;
    margin-top: 20px;
    margin-bottom: 7px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.form-header p {
    gap: 6px;
    display: flex;
    font-size: 15px;
    font-weight: 500;
    color: #6c7a8a;
    margin-bottom: 50px;
    align-items: center;
    justify-content: center;
}

/* ===== INPUT FIELDS NEUMORPHISM ===== */
.input-field {
    position: relative;
    margin-bottom: 18px;
}

.input-field i:first-child {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 2;
    width: 18px;
    text-align: center;
    color: #0057ff;
}

.input-field input {
    width: 100%;
    padding: 14px 50px 14px 50px;
    background: #f8fafd;
    border: none;
    border-radius: 40px;
    font-size: 14px;
    color: #1a2a3a;
    transition: all 0.3s;
    outline: none;
    font-weight: bold;
    box-shadow:
        inset 5px 5px 12px rgba(0, 0, 0, 0.05),
        inset -3px -3px 8px rgba(255, 255, 255, 0.9),
        2px 2px 6px rgba(0, 0, 0, 0.02);
}

.input-field input:focus {
    background: #ffffff;
    box-shadow:
        inset 3px 3px 8px rgba(0, 0, 0, 0.05),
        inset -4px -4px 10px rgba(255, 255, 255, 0.9),
        0px 0px 0px 2px rgba(0, 195, 255, 0.15);
    color: #1a2a3a;
}

.input-field label {
    position: absolute;
    left: 50px;
    top: 14px;
    color: #8a9aa8;
    font-size: 13px;
    transition: all 0.3s;
    pointer-events: none;
    background: transparent;
    padding: 0 6px;
    font-weight: 500;
}

.input-field input:focus~label,
.input-field input:valid~label {
    top: -10px;
    left: 42px;
    font-size: 11px;
    color: #0057ff;
    background: #ffffff;
    padding: 0 8px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

/* ===== CAMPO CONTRASEÑA CON OJO ===== */
.password-field .password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #8a9aa8;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 16px;
    left: auto;
}

.password-field .password-toggle:hover {
    color: #00c3ff;
}

/* ===== BOTÓN SUBMIT NEUMORPHISM ===== */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0057ff, #00c3ff);
    border: none;
    border-radius: 40px;
    color: white;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    margin-top: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.1),
        -4px -4px 10px rgba(255, 255, 255, 0.7),
        inset 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow:
        12px 12px 20px rgba(0, 0, 0, 0.12),
        -6px -6px 12px rgba(255, 255, 255, 0.8);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ===== FOOTER ===== */
.card-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 87, 255, 0.1);
}

.footer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #0057ff;
}

.footer-item i {
    font-size: 14px;
    color: #00c3ff;
}

.footer-divider {
    width: 4px;
    height: 4px;
    background: #00c3ff;
    border-radius: 50%;
    opacity: 0.4;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    font-size: 10px;
    color: #8a9aa8;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ===== SISTEMA DE ALERTAS ===== */
.alert-system {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    width: 100%;
    pointer-events: none;
}

.alert-modern {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 10px 16px 10px 14px;
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.1), -4px -4px 12px rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    opacity: 0;
    animation: slideInAlert 0.3s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.alert-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.alert-modern.success .alert-icon {
    color: #10B981;
}

.alert-modern.error .alert-icon {
    color: #EF4444;
}

.alert-modern.warning .alert-icon {
    color: #F59E0B;
}

.alert-modern.info .alert-icon {
    color: #0057ff;
}

.alert-content {
    flex: 1;
    line-height: 1.3;
}

.alert-title {
    font-weight: 700;
    font-size: 13px;
    color: #1F2937;
    margin-bottom: 2px;
}

.alert-message {
    font-size: 11px;
    color: #6B7280;
}

.alert-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    animation: progressBar 4s linear forwards;
}

.alert-modern.success .alert-progress {
    background: linear-gradient(90deg, #10B981, #34D399);
}

.alert-modern.error .alert-progress {
    background: linear-gradient(90deg, #EF4444, #F87171);
}

.alert-modern.warning .alert-progress {
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

.alert-modern.info .alert-progress {
    background: linear-gradient(90deg, #0057ff, #00c3ff);
}

@keyframes slideInAlert {
    0% {
        transform: translateX(120%) scale(0.95);
        opacity: 0;
    }

    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOutAlert {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes progressBar {
    0% {
        width: 100%;
    }

    100% {
        width: 0%;
    }
}

/* ===== MODAL INFORMATIVO OSCURO - NEUMORPHISM ===== */
.overlay-2fa {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.overlay-2fa.active {
    display: flex;
}

.recovery-modal {
    position: relative;
    width: 480px;
    max-width: 90%;
    background: rgba(26, 20, 46, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 48px;
    overflow: hidden;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        20px 20px 40px rgba(0, 0, 0, 0.5),
        -10px -10px 30px rgba(108, 99, 255, 0.08),
        inset 1px 1px 2px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 195, 255, 0.15);
}

.recovery-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 87, 255, 0.15);
    border: none;
    color: #00c3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    font-size: 16px;
    box-shadow:
        3px 3px 8px rgba(0, 0, 0, 0.3),
        -2px -2px 5px rgba(255, 255, 255, 0.03);
}

.recovery-close:hover {
    background: #EF4444;
    color: white;
    transform: rotate(90deg);
}

.recovery-content {
    padding: 32px 28px;
    text-align: center;
}

.recovery-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, rgba(0, 87, 255, 0.2), rgba(0, 195, 255, 0.1));
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow:
        10px 10px 20px rgba(0, 0, 0, 0.3),
        -5px -5px 12px rgba(255, 255, 255, 0.03),
        inset 1px 1px 2px rgba(255, 255, 255, 0.05);
}

.recovery-icon i {
    font-size: 34px;
    background: linear-gradient(135deg, #0057ff, #00c3ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.recovery-content h3 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #a8a8ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}

.recovery-content>p {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* ===== PASOS INFORMATIVOS ===== */
.info-steps {
    text-align: left;
    margin-bottom: 20px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.step-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #0057ff, #00c3ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
}

.step-text {
    flex: 1;
}

.step-text strong {
    display: block;
    font-size: 14px;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.step-text span {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

.step-text code {
    background: rgba(0, 87, 255, 0.2);
    padding: 2px 6px;
    border-radius: 20px;
    font-size: 11px;
    color: #00c3ff;
    font-family: monospace;
}

.highlight {
    color: #00c3ff;
    font-weight: 600;
}

/* ===== EJEMPLO ===== */
.info-example {
    background: rgba(0, 87, 255, 0.1);
    border-radius: 20px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 195, 255, 0.15);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1), inset -1px -1px 2px rgba(255, 255, 255, 0.02);
}

.info-example i {
    font-size: 20px;
    color: #00c3ff;
}

.info-example span {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.4;
}

.info-example code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    color: #00c3ff;
    font-family: monospace;
}

/* ===== NOTA DE SEGURIDAD ===== */
.info-note {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-note i {
    font-size: 18px;
    color: #00c3ff;
}

.info-note span {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 560px) {
    body {
        padding: 16px;
    }

    .container {
        width: 100%;
    }

    .card-inner {
        padding: 25px 20px 30px;
    }

    .form-header h3 {
        font-size: 24px;
    }

    .footer-info {
        gap: 10px;
    }

    .footer-item span {
        font-size: 10px;
    }

    .alert-system {
        max-width: 240px;
    }

    .brand-name {
        font-size: 14px;
    }

    .logo-circle {
        width: 40px;
        height: 40px;
    }

    .logo-circle img {
        width: 26px;
    }

    .recovery-modal {
        width: 95%;
    }

    .recovery-content {
        padding: 25px 20px;
    }

    .step-item {
        gap: 10px;
    }

    .step-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .step-text strong {
        font-size: 13px;
    }

    .step-text span {
        font-size: 11px;
    }
}