/* Username validation feedback styles */
.username-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    transition: all 0.3s ease;
}

.username-feedback.text-success {
    color: #00ff88 !important;
}

.username-feedback.text-danger {
    color: #ff4757 !important;
}

.username-feedback.text-info {
    color: #3742fa !important;
}

.username-feedback.text-warning {
    color: #ffa502 !important;
}

/* Enhanced form validation styles */
.form-control.is-valid {
    border-color: #00ff88;
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 136, 0.25);
}

.form-control.is-invalid {
    border-color: #ff4757;
    box-shadow: 0 0 0 0.2rem rgba(255, 71, 87, 0.25);
}

.form-control.is-valid:focus {
    border-color: #00ff88;
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 136, 0.25);
}

.form-control.is-invalid:focus {
    border-color: #ff4757;
    box-shadow: 0 0 0 0.2rem rgba(255, 71, 87, 0.25);
}

body {
     font-family: 'Inter', sans-serif;
     background: #0a0a0a;
     min-height: 100vh;
     position: relative;
     overflow-x: hidden;
     overflow-y: auto;
     padding: 2rem 0;
 }

 /* Dark Mode Background Pattern */
 body::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background:
         radial-gradient(circle at 20% 80%, rgba(0, 255, 136, 0.2) 0%, transparent 50%),
         radial-gradient(circle at 80% 20%, rgba(0, 204, 106, 0.2) 0%, transparent 50%),
         radial-gradient(circle at 40% 40%, rgba(0, 230, 118, 0.15) 0%, transparent 50%);
     z-index: -1;
     animation: backgroundShift 20s ease-in-out infinite;
     pointer-events: none;
 }

 /* Animated Background Particles */
 .background-particles {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     pointer-events: none;
     z-index: 2;
 }

 .particle {
     position: absolute;
     background: rgba(0, 255, 136, 0.3);
     border-radius: 50%;
     animation: float 6s ease-in-out infinite;
 }

 @keyframes backgroundShift {

     0%,
     100% {
         opacity: 1;
     }

     50% {
         opacity: 0.8;
     }
 }

 .login-card {
     background: rgba(26, 26, 26, 0.95);
     backdrop-filter: blur(20px);
     border: 1px solid rgba(0, 255, 136, 0.2);
     border-radius: 20px;
     box-shadow:
         0 25px 50px rgba(0, 0, 0, 0.8),
         0 0 30px rgba(0, 255, 136, 0.2),
         inset 0 1px 0 rgba(255, 255, 255, 0.1);
     padding: 3rem;
     width: 100%;
     max-width: 600px;
     position: relative;
     z-index: 10;
     animation: cardEntry 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
     overflow: hidden;
 }

 .login-card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     height: 4px;
     background: linear-gradient(90deg, #00ff88, #00cc6a, #00ff88);
     background-size: 200% 100%;
     animation: shimmer 2s linear infinite;
 }

 .login-card::after {
     content: '';
     position: absolute;
     top: -50%;
     left: -50%;
     width: 200%;
     height: 200%;
     background: conic-gradient(from 0deg, transparent, rgba(0, 255, 136, 0.1), transparent);
     animation: rotate 10s linear infinite;
     z-index: -1;
 }

 .login-header {
     background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
     color: #00ff88;
     text-align: center;
     padding: 2rem 0;
     margin: -3rem -3rem 2rem -3rem;
     position: relative;
     overflow: hidden;
     border: 1px solid rgba(0, 255, 136, 0.2);
 }

 .login-header::before {
     content: '';
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 100%;
     background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
     animation: glow 3s ease-in-out infinite;
 }

 .login-header h1 {
     margin: 0;
     font-size: 1.8rem;
     font-weight: 700;
     text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
     position: relative;
     z-index: 2;
 }

 .login-body {
     padding: 2rem;
 }

 .form-control:focus {
     border-color: #00ff88;
     box-shadow: 0 0 0 0.2rem rgba(0, 255, 136, 0.25);
 }

 .btn-login {
     background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
     border: none;
     color: #1a1a1a;
     padding: 15px 30px;
     border-radius: 12px;
     font-weight: 600;
     font-size: 1rem;
     width: 100%;
     cursor: pointer;
     transition: all 0.3s ease;
     position: relative;
     overflow: hidden;
     text-transform: uppercase;
     letter-spacing: 1px;
     box-shadow:
         0 8px 25px rgba(0, 255, 136, 0.3),
         inset 0 1px 0 rgba(255, 255, 255, 0.2);
 }

 .btn-login:hover {
     transform: translateY(-2px);
     box-shadow:
         0 12px 35px rgba(0, 255, 136, 0.4),
         inset 0 1px 0 rgba(255, 255, 255, 0.3);
 }

 .btn-login:active {
     transform: translateY(0);
 }

 .btn-login::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;
 }

 /* Trading Chart Elements */
 .trading-chart {
     position: absolute;
     top: 20%;
     right: 10%;
     width: 200px;
     height: 120px;
     opacity: 0.1;
     z-index: 3;
 }

 .candlestick {
     position: absolute;
     width: 3px;
     background: #00ff88;
     border-radius: 1px;
 }

 .candlestick.red {
     background: #ff3b30;
 }

 .candlestick:nth-child(1) {
     left: 10px;
     height: 40px;
     top: 20px;
 }

 .candlestick:nth-child(2) {
     left: 20px;
     height: 60px;
     top: 10px;
 }

 .candlestick:nth-child(3) {
     left: 30px;
     height: 35px;
     top: 25px;
 }

 .candlestick:nth-child(4) {
     left: 40px;
     height: 55px;
     top: 15px;
 }

 .candlestick:nth-child(5) {
     left: 50px;
     height: 45px;
     top: 20px;
 }

 .candlestick:nth-child(6) {
     left: 60px;
     height: 70px;
     top: 5px;
 }

 .candlestick:nth-child(7) {
     left: 70px;
     height: 30px;
     top: 30px;
 }

 .candlestick:nth-child(8) {
     left: 80px;
     height: 50px;
     top: 18px;
 }

 /* Financial Indicators */
 .financial-indicators {
     position: absolute;
     top: 15%;
     left: 8%;
     opacity: 0.08;
     z-index: 3;
 }

 .indicator {
     display: flex;
     align-items: center;
     margin-bottom: 8px;
     font-size: 12px;
     color: #00ff88;
 }

 .indicator-dot {
     width: 6px;
     height: 6px;
     border-radius: 50%;
     background: #00ff88;
     margin-right: 8px;
     animation: pulse 2s infinite;
 }

 .indicator.loss .indicator-dot {
     background: #ff3b30;
 }

 .form-control {
     border: 2px solid rgba(0, 255, 136, 0.2);
     border-radius: 12px;
     padding: 15px 20px;
     font-size: 1rem;
     background: rgba(42, 42, 42, 0.9);
     color: #ffffff;
     transition: all 0.3s ease;
     position: relative;
 }

 .form-control:focus {
     border-color: #00ff88;
     box-shadow:
         0 0 0 3px rgba(0, 255, 136, 0.1),
         0 8px 25px rgba(0, 255, 136, 0.15);
     background: rgba(42, 42, 42, 1);
     color: #ffffff;
     transform: translateY(-2px);
     outline: none;
 }

 .form-control::placeholder {
     color: #b0b0b0;
 }

 /* Success/Error States */
 .form-control.is-valid {
     border-color: #00ff88;
     background: rgba(0, 255, 136, 0.05);
 }

 .form-control.is-invalid {
     border-color: #ff3b30;
     background: rgba(255, 59, 48, 0.05);
 }

 .invalid-feedback {
     color: #ff3b30;
     font-size: 0.875rem;
     margin-top: 0.5rem;
 }

 .valid-feedback {
     color: #00ff88;
     font-size: 0.875rem;
     margin-top: 0.5rem;
 }

 /* Form Labels */
 .form-label {
     color: #ffffff;
     font-weight: 600;
     margin-bottom: 0.75rem;
     font-size: 0.9rem;
     text-transform: uppercase;
     letter-spacing: 0.5px;
 }

 /* Market Grid Pattern */
 .market-grid {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-image:
         linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
         linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
     background-size: 20px 20px;
     z-index: 2;
     pointer-events: none;
 }