/* OurLoto - Login/Register Page Styling */
/* Special immersive dark theme for auth pages */

/* Remove default Bootstrap container */
.container-fluid {
    padding: 0 !important;
    margin: 0 !important;
}

/* Full screen background */
.auth-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #0c0c0c 100%);
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated background overlay */
.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 193, 7, 0.1) 0%, transparent 50%);
    animation: authGlow 8s ease-in-out infinite;
}

@keyframes authGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Floating particles */
.auth-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.auth-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: authFloat 12s ease-in-out infinite;
}

@keyframes authFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg); 
        opacity: 0.2; 
    }
    50% { 
        transform: translateY(-50px) translateX(30px) rotate(180deg); 
        opacity: 0.8; 
    }
}

/* Main auth container */
.auth-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 380px;
    padding: 20px;
}

/* Logo styling */
.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo h1 {
    color: #fdbe37;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-logo h1, .auth-logo h1 i {
    color: #ff9800 !important;
}

.auth-logo h1 {
    -webkit-text-fill-color: #ff9800 !important;
    text-fill-color: #ff9800 !important;
}

.auth-logo p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0;
}

/* Auth card */
.auth-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
    animation: authShimmer 4s infinite;
}

@keyframes authShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.auth-card h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Form styling */
.auth-form .form-group {
    margin-bottom: 25px;
    position: relative;
}

.auth-form .form-label {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.auth-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    padding: 15px 18px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
    color: #ffffff;
    outline: none;
}

.auth-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Submit button */
.auth-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.auth-submit::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;
}

.auth-submit:hover::before {
    left: 100%;
}

.auth-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

/* Links */
.auth-links {
    text-align: center;
    margin-top: 25px;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-links a:hover {
    color: #764ba2;
    text-shadow: 0 0 8px rgba(102, 126, 234, 0.5);
}

/* Alert styling for auth pages */
.auth-alert {
    background: rgba(220, 53, 69, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    padding: 15px 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

/* Success state */
.auth-success {
    background: rgba(40, 167, 69, 0.9);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-container {
        max-width: 350px;
        padding: 15px;
    }
    
    .auth-card {
        padding: 30px 25px;
    }
    
    .auth-logo h1 {
        font-size: 2.5rem;
    }
    
    .auth-form .form-control {
        padding: 12px 15px;
    }
    
    .auth-submit {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Username display styles */
.username-display {
    text-align: center;
    margin: 20px 0;
}

.username-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.username-box h3 {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 3px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Courier New', monospace;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.form-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin-top: 5px;
}

@media (max-width: 480px) {
    .auth-container {
        max-width: 380px;
        padding: 10px;
    }
    
    .auth-card {
        padding: 25px 20px;
    }
    
    .auth-logo h1 {
        font-size: 2rem;
    }
    
    .username-box h3 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
}


.me-2 {
    margin-left: .5rem !important;
    margin-right: 0rem !important;
}