/* ===== MODERN AUTHENTICATION STYLES ===== */

/* Auth Section */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}

/* Animated Background */
.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.auth-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 6s infinite linear;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
    animation-duration: 6s;
}

.particle:nth-child(3) {
    left: 60%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.particle:nth-child(4) {
    left: 80%;
    animation-delay: 3s;
    animation-duration: 7s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 4s;
    animation-duration: 9s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Auth Container */
.auth-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 20px;
}

/* Auth Card */
.auth-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.6), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Auth Navigation */
.auth-nav {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 4px;
    margin-bottom: 30px;
    position: relative;
}

.auth-nav-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.auth-nav-btn.active {
    background: linear-gradient(135deg, #00ffff, #0080ff);
    color: #000;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
}

.auth-nav-btn:hover:not(.active) {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    margin-bottom: 20px;
}

.quantum-logo-modern {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-rings {
    position: absolute;
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.ring-1 {
    width: 80px;
    height: 80px;
    border-color: rgba(0, 255, 255, 0.6);
    animation-duration: 8s;
}

.ring-2 {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-color: rgba(0, 128, 255, 0.6);
    animation-duration: 6s;
    animation-direction: reverse;
}

.ring-3 {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-color: rgba(255, 255, 255, 0.6);
    animation-duration: 4s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-center {
    position: relative;
    z-index: 3;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00ffff, #0080ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.logo-text {
    font-size: 16px;
    font-weight: 900;
    color: #000;
    text-shadow: none;
}

.auth-title-container {
    animation: fadeInUp 0.8s ease-out;
}

.auth-title {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #00ffff, #0080ff, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin: 0;
    transition: all 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Forms */
.auth-forms {
    position: relative;
    margin-bottom: 30px;
}

.auth-form {
    display: none;
    animation: slideIn 0.5s ease-out;
}

.auth-form.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.form-group label i {
    color: rgba(0, 255, 255, 0.8);
    font-size: 16px;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-wrapper input:focus {
    outline: none;
    border-color: rgba(0, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
}

.input-focus-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #0080ff);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.input-wrapper input:focus + .input-focus-line {
    width: 100%;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    position: relative;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #00ffff, #0080ff);
    border-color: #00ffff;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: rgba(0, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #00ffff;
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff4757, #ffa502, #2ed573);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Referral Bonus */
.referral-bonus {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 215, 0, 0.8);
    font-size: 13px;
}

.referral-bonus i {
    color: #ffd700;
}

/* Form Terms */
.form-terms {
    margin-bottom: 25px;
}

.form-terms .checkbox-container {
    font-size: 13px;
    line-height: 1.4;
}

.terms-link, .privacy-link {
    color: rgba(0, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-link:hover, .privacy-link:hover {
    color: #00ffff;
}

/* Modern Buttons */
.btn-modern {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #00ffff, #0080ff);
    color: #000;
    box-shadow: 
        0 8px 25px rgba(0, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(0, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.btn-modern:active .btn-ripple {
    width: 300px;
    height: 300px;
}

/* Auth Features */
.auth-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 255, 255, 0.2);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 128, 255, 0.2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    color: #00ffff;
    font-size: 18px;
}

.feature-content h4 {
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.feature-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        max-width: 100%;
        padding: 15px;
    }
    
    .auth-card {
        padding: 30px 25px;
        border-radius: 20px;
    }
    
    .auth-title {
        font-size: 28px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .auth-features {
        gap: 15px;
    }
    
    .feature {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 25px 20px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .quantum-logo-modern {
        width: 60px;
        height: 60px;
    }
    
    .ring-1 {
        width: 60px;
        height: 60px;
    }
    
    .ring-2 {
        width: 45px;
        height: 45px;
        top: 7.5px;
        left: 7.5px;
    }
    
    .ring-3 {
        width: 30px;
        height: 30px;
        top: 15px;
        left: 15px;
    }
    
    .logo-center {
        width: 30px;
        height: 30px;
    }
    
    .logo-text {
        font-size: 14px;
    }
}
