* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a1a;
    position: relative;
    overflow-x: hidden;
    padding: 16px;
}

/* ===== CANVAS DE PARTÍCULAS ===== */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== ORBES DE FONDO ===== */
.bg-orb {
    position: fixed;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle at 30% 50%, rgba(77, 23, 154, 0.5), transparent 70%);
    border-radius: 50%;
    top: -150px;
    left: -150px;
    filter: blur(80px);
    z-index: 1;
}

.orb-2 {
    background: radial-gradient(circle at 70% 50%, rgba(255, 215, 0, 0.3), transparent 70%);
    bottom: -150px;
    right: -150px;
    top: auto;
    left: auto;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.container {
    width: 1150px;
    max-width: 100%;
    position: relative;
    z-index: 10;
}

/* ===== GLASS CARD ===== */
.glass-card {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    min-height: 580px;
}

/* ===== PANEL IZQUIERDO ===== */
.brand-panel {
    width: 45%;
    padding: 40px 35px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-y: auto;
}

.brand-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 35px;
}

.logo-image {
    width: 50px;
    flex-shrink: 0;
    overflow: hidden;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.main-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: 1px;
    line-height: 1.2;
}

.purple-dot {
    color: #4D179A;
    margin: 0 4px;
    font-size: 26px;
}

.sub-title {
    font-size: 11px;
    font-weight: 700;
    color: #4D179A;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    align-self: flex-start;
}

/* Título dinámico */
.dynamic-title {
    margin-bottom: 35px;
}

.dynamic-title h2 {
    font-size: 32px;
    font-weight: 900;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 6px;
}

.gradient-text {
    background: linear-gradient(135deg, #4D179A, #FF6B6B);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.brand-subtitle {
    color: #4a4a6a;
    font-size: 14px;
    font-weight: 500;
}

/* Features */
.features-container {
    flex: 1;
    margin-bottom: 35px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 18px;
    background: rgba(77, 23, 154, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(77, 23, 154, 0.2);
    transition: all 0.3s;
}

.feature-card:hover {
    background: rgba(77, 23, 154, 0.1);
    border-color: #4D179A;
    transform: translateX(8px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #4D179A, #2a0f4d);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-icon i {
    font-size: 22px;
    color: white;
}

.feature-text h4 {
    color: #1a1a2e;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
}

.feature-text p {
    color: #4a4a6a;
    font-size: 12px;
    font-weight: 500;
}

/* Stats panel */
.stats-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: rgba(77, 23, 154, 0.05);
    border-radius: 24px;
    border: 1px solid rgba(77, 23, 154, 0.2);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    color: #4D179A;
    font-size: 22px;
    font-weight: 900;
}

.stat-label {
    color: #4a4a6a;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(77, 23, 154, 0.3);
}

/* ===== PANEL DERECHO ===== */
.forms-panel {
    width: 55%;
    padding: 40px 45px 35px;
    background: rgba(255, 255, 255, 0.98);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 580px;
}

/* ===== FORM HEADER ===== */
.form-header {
    text-align: center;
    margin-bottom: 24px;
}

.form-header h3 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.form-header p {
    color: #4a4a6a;
    font-size: 13px;
    font-weight: 500;
}

/* ===== ICONOS GRANDES DE LÍNEA LUMINOSA ===== */
.line-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.line-shape {
    position: relative;
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(77, 23, 154, 0.3);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transition: all 0.4s ease;
    background: transparent;
    z-index: 2;
}

.line-shape i {
    font-size: 42px;
    background: linear-gradient(135deg, #4D179A, #FF6B6B);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

.line-glow {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #4D179A, #FF6B6B) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.7;
    transition: opacity 0.4s ease, transform 0.4s ease;
    animation: rotateSlow 8s infinite linear;
}

@keyframes rotateSlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== FORM WRAPPERS ===== */
.form-wrapper {
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.form-wrapper.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== INPUT FIELDS ===== */
.input-field {
    position: relative;
    margin-bottom: 20px;
}

.input-field.full-width {
    width: 100%;
}

.input-field i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    transition: all 0.3s ease;
    z-index: 2;
    width: 20px;
    text-align: center;
    color: #4D179A;
}

.input-field input {
    width: 100%;
    padding: 15px 18px 15px 50px;
    background: rgba(77, 23, 154, 0.05);
    border: 2px solid rgba(77, 23, 154, 0.2);
    border-radius: 18px;
    font-size: 14px;
    color: #1a1a2e;
    transition: all 0.3s;
    outline: none;
}

.input-field input:focus {
    border-color: #4D179A;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(77, 23, 154, 0.08);
}

.input-field label {
    position: absolute;
    left: 50px;
    top: 15px;
    color: #4a4a6a;
    font-size: 14px;
    transition: all 0.3s;
    pointer-events: none;
    background: transparent;
    padding: 0 4px;
    font-weight: 500;
}

.input-field input:focus~label,
.input-field input:valid~label {
    top: -9px;
    left: 44px;
    font-size: 11px;
    color: #4D179A;
    background: white;
    padding: 0 8px;
    border-radius: 8px;
    font-weight: 600;
}

/* ===== PASSWORD TOGGLE BUTTON ===== */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(77, 23, 154, 0.6);
    cursor: pointer;
    z-index: 10;
    font-size: 1.1rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.password-toggle i {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin: 0;
    color: inherit;
}

.password-toggle:hover {
    color: #4D179A;
    background: rgba(77, 23, 154, 0.1);
}

.input-field.has-toggle input {
    padding-right: 48px;
}

.input-field i {
    line-height: 1;
}

/* ===== TCS USERNAME STYLE ===== */
.tcs-username {
    color: #4D179A !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ===== FORM OPTIONS ===== */
.form-options {
    margin: 24px 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1a1a2e;
    font-size: 13px;
    cursor: pointer;
    position: relative;
    font-weight: 500;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background: rgba(77, 23, 154, 0.05);
    border: 2px solid rgba(77, 23, 154, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.checkmark i {
    color: white;
    font-size: 11px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s;
}

.custom-checkbox input:checked~.checkmark {
    background: #4D179A;
    border-color: #4D179A;
}

.custom-checkbox input:checked~.checkmark i {
    opacity: 1;
    transform: scale(1);
}

.custom-checkbox:hover .checkmark {
    border-color: #4D179A;
}

.checkbox-text {
    color: #1a1a2e;
}

.forgot-link {
    color: #4D179A;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
    padding: 4px 0;
}

.forgot-link:hover {
    color: #2a0f4d;
    text-decoration: underline;
}

/* ===== BOTÓN SUBMIT ===== */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4D179A, #FF6B6B);
    border: none;
    border-radius: 22px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.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: 0 15px 30px rgba(77, 23, 154, 0.3);
}

.btn-submit i {
    font-size: 17px;
    transition: transform 0.3s;
}

.btn-submit:hover i {
    transform: translateX(4px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
    .glass-card {
        flex-direction: column;
    }

    .brand-panel,
    .forms-panel {
        width: 100%;
    }

    .brand-panel {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .forms-panel {
        padding: 50px 30px 40px;
        min-height: auto;
    }
}

@media (max-width: 600px) {
    .line-icon {
        width: 80px;
        height: 80px;
    }

    .line-shape {
        width: 68px;
        height: 68px;
    }

    .line-shape i {
        font-size: 34px;
    }

    .dynamic-title h2 {
        font-size: 26px;
    }

    .stats-panel {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

    .form-header h3 {
        font-size: 26px;
    }

    .brand-logo {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* ===== SISTEMA DE ALERTAS MODERNO ===== */
.alert-system {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    width: 100%;
    pointer-events: none;
}

.alert-modern {
    background: white;
    border-radius: 18px;
    padding: 16px 22px;
    box-shadow: 0 18px 35px -10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 0 25px rgba(77, 23, 154, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(120%);
    opacity: 0;
    animation: slideInAlert 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.alert-modern:hover {
    transform: translateX(-4px) scale(1.01);
    box-shadow: 0 22px 45px -12px rgba(77, 23, 154, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.3) inset;
}

.alert-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(200%);
    }
}

.alert-modern.success {
    background: linear-gradient(135deg, #00C853, #00E676);
    border-left: 6px solid #1B5E20;
}

.alert-modern.error {
    background: linear-gradient(135deg, #D32F2F, #FF5252);
    border-left: 6px solid #B71C1C;
}

.alert-modern.warning {
    background: linear-gradient(135deg, #FF6D00, #FFB74D);
    border-left: 6px solid #E65100;
}

.alert-modern.info {
    background: linear-gradient(135deg, #4D179A, #7B1FA2);
    border-left: 6px solid #1A0B2E;
}

.alert-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(255, 255, 255, 0.3) inset;
    color: white;
    transition: transform 0.3s ease;
}

.alert-modern:hover .alert-icon {
    transform: rotate(4deg) scale(1.08);
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 4px;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
}

.alert-message {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    font-weight: 500;
}

.alert-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    width: 100%;
    animation: progressBar 5s linear forwards;
}

@keyframes slideInAlert {
    0% {
        transform: translateX(120%) scale(0.85);
        opacity: 0;
    }

    50% {
        transform: translateX(-8px) scale(1.01);
    }

    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOutAlert {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

    70% {
        transform: translateX(-15px) scale(0.95);
        opacity: 0.7;
    }

    100% {
        transform: translateX(120%) scale(0.85);
        opacity: 0;
    }
}

@keyframes progressBar {
    0% {
        width: 100%;
    }

    100% {
        width: 0%;
    }
}

/* ===== MODAL 2FA ===== */
.overlay-2fa {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    animation: overlayFadeIn 0.3s ease;
}

.overlay-2fa.active {
    display: flex;
}

.form-2fa {
    position: relative;
    width: 380px;
    max-width: 90%;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 22px;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(54, 158, 255, 0.2), 0 0 25px rgba(54, 158, 255, 0.15);
    overflow: hidden;
    animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-2fa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #369eff, #ffd700, #369eff);
    background-size: 200% 100%;
    animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

.content-2fa {
    padding: 28px 24px;
    position: relative;
    z-index: 2;
}

.modal-header-2fa {
    text-align: center;
    margin-bottom: 20px;
}

.modal-icon-2fa {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(54, 158, 255, 0.2), rgba(255, 215, 0, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border: 2px solid #369eff;
    box-shadow: 0 0 25px rgba(54, 158, 255, 0.25);
}

.modal-icon-2fa i {
    font-size: 28px;
    color: #ffd700;
}

.form-2fa h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 6px;
    letter-spacing: 0.3px;
}

.form-2fa .subtitle {
    color: #a0a0b0;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

.metodo-info-2fa {
    background: rgba(54, 158, 255, 0.08);
    padding: 12px;
    border-radius: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(54, 158, 255, 0.2);
    backdrop-filter: blur(10px);
}

.metodo-info-2fa i {
    font-size: 22px;
    color: #ffd700;
    background: rgba(54, 158, 255, 0.15);
    padding: 8px;
    border-radius: 10px;
}

.metodo-info-2fa span {
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    flex: 1;
}

.metodo-info-2fa small {
    color: #a0a0b0;
    font-size: 11px;
    display: block;
    margin-top: 3px;
}

.inp-2fa {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 22px 0 18px;
}

.input-2fa {
    width: 48px;
    height: 58px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(54, 158, 255, 0.3);
    border-radius: 14px;
    color: #fff;
    font-size: 26px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

.input-2fa:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.08);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.25);
    transform: translateY(-1px);
}

.btn-2fa {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #369eff, #2a7ac0);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 14px -3px rgba(54, 158, 255, 0.25);
}

.btn-2fa::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-2fa:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -4px rgba(54, 158, 255, 0.4);
    background: linear-gradient(135deg, #4aa8ff, #369eff);
}

.btn-2fa:hover::before {
    left: 100%;
}

.btn-2fa:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-2fa i {
    font-size: 16px;
}

.timer-2fa {
    text-align: center;
    font-size: 12px;
    color: #a0a0b0;
    margin: 12px 0 6px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.timer-2fa i {
    color: #ffd700;
    margin-right: 5px;
}

#tiempo2FA {
    color: #ffd700;
    font-weight: 600;
    font-size: 14px;
    background: rgba(54, 158, 255, 0.15);
    padding: 3px 10px;
    border-radius: 18px;
    margin-left: 6px;
}

.reenviar-link-2fa {
    text-align: center;
    color: #a0a0b0;
    font-size: 12px;
    cursor: pointer;
    padding: 6px;
    border-radius: 24px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.reenviar-link-2fa i {
    color: #369eff;
    font-size: 12px;
    transition: transform 0.3s;
}

.reenviar-link-2fa:hover {
    color: #ffd700;
    background: rgba(54, 158, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.reenviar-link-2fa:hover i {
    color: #ffd700;
    transform: rotate(180deg);
}

.close-2fa {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(54, 158, 255, 0.3);
    color: #a0a0b0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    font-size: 14px;
}

.close-2fa:hover {
    background: #ff4444;
    color: white;
    border-color: #ff4444;
    transform: rotate(90deg);
    box-shadow: 0 0 18px rgba(255, 68, 68, 0.4);
}

.svg-2fa {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    opacity: 0.03;
    pointer-events: none;
    animation: rotateSlow 60s linear infinite;
}

.path {
    fill: #369eff;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(35px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.alert-flotante {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 280px;
    max-width: 360px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 12px 18px;
    box-shadow: 0 18px 35px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 10001;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.alert-flotante i {
    font-size: 24px;
}

.alert-flotante.alert-success i {
    color: #10b981;
}

.alert-flotante.alert-success {
    border-left: 3px solid #10b981;
}

.alert-flotante.alert-error i {
    color: #ef4444;
}

.alert-flotante.alert-error {
    border-left: 3px solid #ef4444;
}

.alert-flotante.alert-warning i {
    color: #f59e0b;
}

.alert-flotante.alert-warning {
    border-left: 3px solid #f59e0b;
}

.alert-flotante.alert-info i {
    color: #369eff;
}

.alert-flotante.alert-info {
    border-left: 3px solid #369eff;
}

.alert-flotante div {
    flex: 1;
}

.alert-flotante strong {
    display: block;
    color: white;
    font-size: 14px;
    margin-bottom: 3px;
}

.alert-flotante small {
    display: block;
    color: #a0a0b0;
    font-size: 12px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(35px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .form-2fa {
        width: 92%;
    }

    .content-2fa {
        padding: 22px 18px;
    }

    .input-2fa {
        width: 42px;
        height: 52px;
        font-size: 22px;
    }

    .inp-2fa {
        gap: 5px;
    }

    .modal-icon-2fa {
        width: 52px;
        height: 52px;
    }

    .modal-icon-2fa i {
        font-size: 24px;
    }

    .form-2fa h3 {
        font-size: 18px;
    }

    .alert-flotante {
        min-width: auto;
        width: 90%;
        right: 5%;
        left: 5%;
        top: 12px;
    }
}