/* ===== RESET Y BASE ===== */
* {
    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 (PÚRPURA + DORADO) - SIN CAMBIOS ===== */
.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 - SIN CAMBIOS ===== */
.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 - SIN CAMBIOS ===== */
#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 - CON COLORES AZUL ELÉCTRICO ===== */
.premium-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 48px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 87, 255, 0.2);
    overflow: hidden;
    position: relative;
}

.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 40px 40px;
}

/* ===== HEADER: LOGO + BOTÓN INFO ===== */
.brand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-circle {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-circle img {
    width: 100%;
    height: auto;
    display: block;
}

.brand-name {
    font-size: 15px;
    font-weight: 900;
    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: 20px;
}

.brand-tag {
    font-size: 8px;
    font-weight: 700;
    color: #0057ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-top: 2px;
}

/* ===== BOTÓN INFO ===== */
.info-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #0057ff;
    font-size: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-btn:hover {
    color: #00c3ff;
    transform: scale(1.1);
    background: rgba(0, 195, 255, 0.1);
}

/* ===== ICONO ANIMADO ===== */
.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, #0057ff, #00c3ff);
    border-radius: 30px;
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.icon-shield i {
    font-size: 42px;
    color: white;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.icon-pulse {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: radial-gradient(circle, rgba(0, 195, 255, 0.4) 0%, rgba(0, 87, 255, 0) 70%);
    border-radius: 36px;
    animation: pulseGlow 2s ease-out infinite;
}

.icon-ring {
    position: absolute;
    border-radius: 36px;
    border: 2px solid rgba(0, 195, 255, 0.7);
    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.5);
}

@keyframes ringExpand {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
        border-color: #00c3ff;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
        border-color: #0057ff;
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }

    100% {
        opacity: 0;
        transform: scale(1.3);
    }
}

/* ===== SECCIÓN BIENVENIDA ===== */
.welcome-section {
    text-align: center;
    margin: 10px 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #F3F4F6;
}

.welcome-title {
    font-size: 30px;
    font-weight: 900;
    color: #1F2937;
    margin-top: 20px;
    margin-bottom: 7px;
    letter-spacing: 1.5px;
}

.welcome-subtitle {
    gap: 6px;
    display: flex;
    font-size: 15px;
    font-weight: 700;
    color: #6B7280;
    align-items: center;
    justify-content: center;
}

/* ===== CAMPOS DE ENTRADA - AZUL ELÉCTRICO ===== */
.input-field {
    position: relative;
    margin-bottom: 24px;
}

.input-field i {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #0057ff;
    z-index: 2;
}

.input-field input {
    width: 100%;
    padding: 18px 50px 18px 52px;
    font-size: 15px;
    border: 2px solid #E5E7EB;
    border-radius: 28px;
    outline: none;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    background: #F9FAFB;
    color: #1F2937;
    font-weight: bold;
}

.input-field input:focus {
    border-color: #00c3ff;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(0, 195, 255, 0.1);
}

.input-field label {
    position: absolute;
    left: 52px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 15px;
    transition: 0.2s ease-out;
    pointer-events: none;
    background: transparent;
    padding: 0 4px;
}

.input-field input:focus~label,
.input-field input:valid~label {
    top: 0px;
    left: 44px;
    font-size: 11px;
    background: #FFFFFF;
    padding: 0 8px;
    color: #00c3ff;
    border-radius: 20px;
    font-weight: 600;
}

/* ===== TOGGLE DE CONTRASEÑA ===== */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

.password-toggle i {
    font-size: 18px;
    color: #0057ff;
    transition: all 0.3s ease;
    position: relative;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.password-toggle:hover {
    background: rgba(0, 195, 255, 0.15);
    color: #00c3ff;
}

.form-options {
    display: flex;
    justify-content: flex-end;
    margin: 28px 0 32px;
}

.forgot-link {
    color: #0057ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}

.forgot-link:hover {
    color: #00c3ff;
}

/* ===== BOTÓN PRINCIPAL - AZUL ELÉCTRICO ===== */
.btn-submit {
    position: relative;
    font-size: 15px;
    padding: 1em 2.5em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    border-radius: 6em;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    background: linear-gradient(135deg, #0057ff, #00c3ff);
    background-size: 150% 150%;
    width: 100%;
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 1;
}

.btn-submit span {
    position: relative;
    z-index: 2;
}

.btn-submit i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s;
    font-size: 16px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px -8px rgba(0, 195, 255, 0.5);
    background: linear-gradient(135deg, #3377ff, #4dd4ff);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-submit::after {
    content: "";
    display: inline-block;
    height: 100%;
    width: 100%;
    border-radius: 6em;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transition: all 0.4s;
    background: linear-gradient(135deg, #0057ff, #00c3ff);
    background-size: 150% 150%;
}

.btn-submit:hover::after {
    transform: scaleX(1.3) scaleY(1.5);
    opacity: 0;
}

/* ===== FOOTER ===== */
.card-footer-soft {
    margin-top: 35px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: #9CA3AF;
    font-size: 12px;
    font-weight: 500;
    flex-wrap: wrap;
}

.footer-divider {
    color: #D1D5DB;
}

.card-footer-soft i {
    color: #00c3ff;
    margin-right: 4px;
}

/* ===== 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.96);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 10px 16px 10px 14px;
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.12);
    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;
}

.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: #00c3ff;
}

.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: 2px;
    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, #00c3ff, #4dd4ff);
}

@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 2FA - AZUL ELÉCTRICO ===== */
.overlay-2fa {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.overlay-2fa.active {
    display: flex;
}

.form-2fa {
    position: relative;
    width: 400px;
    max-width: 90%;
    background: white;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.content-2fa {
    padding: 30px 25px;
}

.modal-header-2fa {
    text-align: center;
    margin-bottom: 20px;
}

.modal-icon-2fa {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0057ff, #00c3ff);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 10px 20px -5px rgba(0, 87, 255, 0.4);
}

.modal-icon-2fa i {
    font-size: 30px;
    color: white;
}

.modal-brand-title {
    font-size: 25px;
    font-weight: 900;
    background: linear-gradient(135deg, #1F2937, #00c3ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 5px 0;
    letter-spacing: 2px;
    display: inline-block;
}

.modal-brand-dot {
    color: #00c3ff;
    background: none;
    font-size: 24px;
    display: inline-block;
}

.modal-brand-sub {
    font-size: 10px;
    font-weight: 600;
    color: #0057ff;
    display: block;
    margin-top: 8px;
}

.form-2fa .subtitle {
    color: #6B7280;
    font-size: 13px;
    margin-top: 8px;
}

.metodo-info-2fa {
    background: #F9FAFB;
    padding: 12px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #E5E7EB;
}

.metodo-info-2fa i {
    font-size: 24px;
    color: #00c3ff;
}

.metodo-info-2fa span {
    color: #1F2937;
    font-size: 13px;
    font-weight: 500;
}

.metodo-info-2fa small {
    color: #6B7280;
    display: block;
    font-size: 11px;
    margin-top: 3px;
}

/* ===== CAMPOS 2FA ===== */
.inp-2fa {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 25px 0;
}

.input-2fa {
    width: 52px;
    height: 62px;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 18px;
    color: #1F2937;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s;
}

.input-2fa:focus {
    outline: none;
    border-color: #00c3ff;
    box-shadow: 0 0 0 3px rgba(0, 195, 255, 0.1);
}

.btn-2fa {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0057ff, #00c3ff);
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    margin: 10px 0;
    transition: all 0.3s;
}

.btn-2fa:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -5px rgba(0, 87, 255, 0.5);
}

.timer-2fa {
    text-align: center;
    color: #6B7280;
    font-size: 12px;
    margin-top: 15px;
}

#tiempo2FA {
    color: #00c3ff;
    font-weight: 700;
    margin-left: 5px;
}

.reenviar-link-2fa {
    text-align: center;
    display: block;
    color: #0057ff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    text-decoration: none;
}

.reenviar-link-2fa:hover {
    color: #00c3ff;
}

.close-2fa {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #F3F4F6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.3s;
}

.close-2fa:hover {
    background: #EF4444;
    color: white;
    transform: rotate(90deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 550px) {
    .card-inner {
        padding: 25px 20px 30px;
    }

    .welcome-title {
        font-size: 18px;
    }

    .input-2fa {
        width: 45px;
        height: 55px;
        font-size: 24px;
    }

    .icon-shield {
        width: 70px;
        height: 70px;
    }

    .icon-shield i {
        font-size: 36px;
    }
}