/* ========== LOGIN CYBERPUNK STYLES ========== */
.login-cyber {
    position: relative;
    overflow: hidden;
    background: #0f0f23;
    transition: background 0.3s ease;
}

/* Canvas para partículas */
#particlesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Toggle theme button */
.theme-toggle {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(15deg);
}

.theme-toggle i {
    font-size: 22px;
    color: #fbbf24;
}

/* Container principal */
.login-cyber-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* Card con glow effect */
.login-cyber-card {
    background: rgba(15, 15, 35, 0.7);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 40px 35px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow:
        0 0 40px rgba(99, 102, 241, 0.3),
        inset 0 0 60px rgba(99, 102, 241, 0.05);
    animation: cardGlow 4s ease-in-out infinite, slideIn 0.6s ease-out;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

@keyframes cardGlow {
    0%, 100% {
        box-shadow:
            0 0 40px rgba(99, 102, 241, 0.3),
            inset 0 0 60px rgba(99, 102, 241, 0.05);
    }
    50% {
        box-shadow:
            0 0 60px rgba(139, 92, 246, 0.5),
            inset 0 0 80px rgba(139, 92, 246, 0.1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de esquinas brillantes - eliminado */

/* Header */
.login-cyber-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-cyber-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.logo-cyber-hexagon {
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: hexRotate 10s linear infinite;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
}

@keyframes hexRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-cyber-hexagon::before {
    content: '';
    position: absolute;
    width: 95px;
    height: 95px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.3;
    animation: hexPulse 2s ease-in-out infinite;
}

@keyframes hexPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.logo-cyber-icon {
    position: relative;
    z-index: 2;
    animation: hexRotate 10s linear infinite reverse;
}

.logo-cyber-icon i {
    font-size: 38px;
    color: white;
}

.brand-cyber-title {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    letter-spacing: 2.5px;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.brand-cyber-subtitle {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Inputs cyberpunk style */
.form-cyber-group {
    margin-bottom: 20px;
    position: relative;
}

.input-cyber-wrapper {
    position: relative;
}

.input-cyber-label {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.input-cyber-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #6366f1;
    z-index: 2;
    transition: all 0.3s ease;
}

.form-cyber-input {
    width: 100%;
    padding: 14px 18px 14px 50px;
    background: rgba(15, 15, 35, 0.5);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-cyber-input:focus {
    outline: none;
    background: rgba(15, 15, 35, 0.8);
    border-color: #6366f1;
    box-shadow:
        0 0 20px rgba(99, 102, 241, 0.3),
        inset 0 0 20px rgba(99, 102, 241, 0.1);
}

.form-cyber-input:focus ~ .input-cyber-icon {
    color: #8b5cf6;
    transform: translateY(-50%) scale(1.1);
}

.form-cyber-input::placeholder {
    color: #475569;
}

/* Password toggle */
.password-cyber-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6366f1;
    font-size: 18px;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
}

.password-cyber-toggle:hover {
    color: #8b5cf6;
    transform: translateY(-50%) scale(1.2);
}

/* Checkbox futurista */
.form-cyber-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-cyber-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cyber-checkbox-input {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #6366f1;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.cyber-checkbox-input:checked {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
}

.cyber-checkbox-input:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.cyber-checkbox-label {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* Botón cyberpunk */
.btn-cyber-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: 2px solid #6366f1;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow:
        0 0 20px rgba(99, 102, 241, 0.5),
        inset 0 0 20px rgba(139, 92, 246, 0.2);
}

.btn-cyber-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 ease;
}

.btn-cyber-submit:hover::before {
    left: 100%;
}

.btn-cyber-submit:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 40px rgba(99, 102, 241, 0.8),
        inset 0 0 30px rgba(139, 92, 246, 0.3);
    border-color: #8b5cf6;
}

.btn-cyber-submit:active {
    transform: translateY(0);
}

.btn-cyber-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Loading */
.btn-cyber-submit.loading-cyber {
    pointer-events: none;
    opacity: 0.7;
}

.btn-cyber-submit.loading-cyber .btn-cyber-content {
    opacity: 0;
}

.btn-cyber-submit.loading-cyber::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Divider */
.cyber-divider {
    display: flex;
    align-items: center;
    margin: 28px 0;
    position: relative;
}

.cyber-divider::before,
.cyber-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.cyber-divider span {
    padding: 0 20px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.login-cyber-footer {
    text-align: center;
}

.footer-cyber-text {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 10px;
}

.footer-cyber-link {
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-cyber-link:hover {
    color: #8b5cf6;
    gap: 12px;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Light mode styles */
.login-cyber.light-mode-cyber {
    background: #f1f5f9 !important;
}

.login-cyber.light-mode-cyber #particlesCanvas {
    opacity: 0.5;
}

.login-cyber.light-mode-cyber .login-cyber-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(99, 102, 241, 0.2) !important;
    box-shadow:
        0 0 40px rgba(99, 102, 241, 0.15),
        0 10px 50px rgba(0, 0, 0, 0.1) !important;
    animation: slideIn 0.6s ease-out !important;
}

.login-cyber.light-mode-cyber .brand-cyber-subtitle,
.login-cyber.light-mode-cyber .input-cyber-label,
.login-cyber.light-mode-cyber .cyber-checkbox-label,
.login-cyber.light-mode-cyber .footer-cyber-text {
    color: #64748b !important;
}

.login-cyber.light-mode-cyber .form-cyber-input {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}

.login-cyber.light-mode-cyber .form-cyber-input:focus {
    background: white !important;
    border-color: #6366f1 !important;
}

.login-cyber.light-mode-cyber .form-cyber-input::placeholder {
    color: #94a3b8 !important;
}

.login-cyber.light-mode-cyber .cyber-divider::before,
.login-cyber.light-mode-cyber .cyber-divider::after {
    background: linear-gradient(to right, transparent, #e2e8f0, transparent) !important;
}

.login-cyber.light-mode-cyber .cyber-divider span {
    color: #94a3b8 !important;
}

.login-cyber.light-mode-cyber .theme-toggle {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(226, 232, 240, 0.5) !important;
}

.login-cyber.light-mode-cyber .theme-toggle:hover {
    background: rgba(255, 255, 255, 1) !important;
}

.login-cyber.light-mode-cyber .theme-toggle i {
    color: #6366f1 !important;
}

.login-cyber.light-mode-cyber .input-cyber-icon {
    color: #94a3b8 !important;
}

.login-cyber.light-mode-cyber .form-cyber-input:focus ~ .input-cyber-icon {
    color: #6366f1 !important;
}

.login-cyber.light-mode-cyber .password-cyber-toggle {
    color: #94a3b8 !important;
}

.login-cyber.light-mode-cyber .password-cyber-toggle:hover {
    color: #6366f1 !important;
}

.login-cyber.light-mode-cyber .footer-cyber-link {
    color: #6366f1 !important;
}

.login-cyber.light-mode-cyber .footer-cyber-link:hover {
    color: #8b5cf6 !important;
}

.login-cyber.light-mode-cyber .brand-cyber-title {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.login-cyber.light-mode-cyber .logo-cyber-hexagon {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4) !important;
}

.login-cyber.light-mode-cyber .cyber-checkbox-input {
    border-color: #cbd5e1 !important;
}

.login-cyber.light-mode-cyber .cyber-checkbox-input:checked {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .login-cyber-card {
        max-width: 380px;
        margin: 0 20px;
        padding: 35px 30px;
    }
}

@media (max-width: 576px) {
    .login-cyber-card {
        padding: 32px 28px;
        margin: 0 15px;
        max-width: calc(100% - 30px);
        border-radius: 18px;
    }

    .login-cyber-header {
        margin-bottom: 28px;
    }

    .logo-cyber-container {
        margin-bottom: 16px;
    }

    .logo-cyber-hexagon {
        width: 75px;
        height: 75px;
    }

    .logo-cyber-hexagon::before {
        width: 85px;
        height: 85px;
    }

    .logo-cyber-icon i {
        font-size: 34px;
    }

    .brand-cyber-title {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .brand-cyber-subtitle {
        font-size: 12px;
    }

    .theme-toggle {
        top: 18px;
        right: 18px;
        width: 42px;
        height: 42px;
    }

    .theme-toggle i {
        font-size: 20px;
    }

    .form-cyber-group {
        margin-bottom: 18px;
    }

    .form-cyber-input {
        padding: 13px 16px 13px 46px;
        font-size: 14px;
    }

    .input-cyber-icon {
        left: 16px;
        font-size: 18px;
    }

    .password-cyber-toggle {
        right: 16px;
        font-size: 16px;
    }

    .form-cyber-options {
        margin-bottom: 20px;
    }

    .cyber-checkbox-input {
        width: 18px;
        height: 18px;
    }

    .cyber-checkbox-label {
        font-size: 13px;
    }

    .btn-cyber-submit {
        padding: 13px;
        font-size: 14px;
        letter-spacing: 1.5px;
    }

    .cyber-divider {
        margin: 24px 0;
    }

    .footer-cyber-text {
        font-size: 12px;
    }

    .footer-cyber-link {
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .login-cyber-card {
        padding: 28px 24px;
        margin: 0 12px;
        max-width: calc(100% - 24px);
    }

    .logo-cyber-hexagon {
        width: 70px;
        height: 70px;
    }

    .logo-cyber-hexagon::before {
        width: 80px;
        height: 80px;
    }

    .logo-cyber-icon i {
        font-size: 32px;
    }

    .brand-cyber-title {
        font-size: 28px;
    }
}