/* Authentication Modals */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal.show {
    opacity: 1;
    visibility: visible;
}

.auth-modal-content {
    background: #1a1a1a;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid #333;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.auth-modal.show .auth-modal-content {
    transform: scale(1);
}

.auth-modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    position: relative;
}

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-close:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

.auth-modal-title {
    color: #ffd700;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-modal-subtitle {
    color: #cccccc;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.auth-modal-body {
    padding: 0 2rem 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input {
    background: #333;
    border: 2px solid #555;
    border-radius: 10px;
    padding: 1rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.form-input::placeholder {
    color: #888;
}

.form-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #ffd700;
}

.form-checkbox-label {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-checkbox-label a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-checkbox-label a:hover {
    color: #ff6b35;
}

.auth-submit-btn {
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    border: none;
    color: #000;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #333;
}

.auth-divider span {
    color: #888;
    font-size: 0.9rem;
}

.social-login-btn {
    background: #333;
    border: 1px solid #555;
    color: #fff;
    padding: 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 500;
}

.social-login-btn:hover {
    background: #444;
    border-color: #ffd700;
}

.social-login-btn i {
    font-size: 1.1rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

.auth-switch p {
    color: #cccccc;
    margin-bottom: 1rem;
}

.auth-switch-btn {
    background: transparent;
    border: 2px solid #ffd700;
    color: #ffd700;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-switch-btn:hover {
    background: #ffd700;
    color: #000;
    transform: translateY(-2px);
}

.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password a {
    color: #ffd700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #ff6b35;
}

.welcome-bonus-preview {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 53, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.welcome-bonus-preview h4 {
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.welcome-bonus-preview .bonus-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.welcome-bonus-preview p {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .auth-modal-header,
    .auth-modal-body {
        padding: 1.5rem;
    }
    
    .auth-modal-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .auth-modal-header {
        padding: 1rem;
    }
    
    .auth-modal-body {
        padding: 0 1rem 1rem;
    }
    
    .auth-modal-title {
        font-size: 1.6rem;
    }
}