/* Auth Modal Styles */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.auth-modal.hidden {
    display: none;
}

.auth-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 15px;
    border: 1px solid #00d4ff;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.auth-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #ccc;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.auth-close:hover {
    color: #00d4ff;
}

.auth-form {
    display: none;
    padding: 40px;
}

.auth-form.active {
    display: block;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    font-size: 3rem;
    color: #00d4ff;
    margin-bottom: 15px;
}

.auth-header h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.auth-header p {
    color: #ccc;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(42, 42, 74, 0.8);
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    color: #ccc;
    cursor: pointer;
    position: relative;
}

.checkbox-container input {
    width: auto;
    margin-right: 8px;
}

.checkbox-container a {
    color: #00d4ff;
    text-decoration: none;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

.form-options a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-options a:hover {
    color: #0099cc;
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.auth-btn.primary {
    background: #00d4ff;
    color: #000;
}

.auth-btn.primary:hover {
    background: #0099cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #444;
}

.auth-divider span {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ccc;
    padding: 0 15px;
    position: relative;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 8px;
    background: rgba(42, 42, 74, 0.6);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: #00d4ff;
    background: rgba(42, 42, 74, 0.8);
    transform: translateY(-1px);
}

.social-btn.google:hover {
    border-color: #db4437;
}

.social-btn.discord:hover {
    border-color: #7289da;
}

.social-icon {
    font-size: 1.2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.auth-footer p {
    color: #ccc;
    font-size: 0.9rem;
}

.auth-footer a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: bold;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* User Menu Styles */
.user-menu {
    position: fixed;
    top: 70px;
    right: 50px;
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid #00d4ff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    min-width: 250px;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #00d4ff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.username {
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
}

.user-email {
    color: #ccc;
    font-size: 0.8rem;
}

.menu-divider {
    height: 1px;
    background: #444;
    margin: 0 10px;
}

.menu-item {
    display: block;
    padding: 12px 20px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.menu-item.logout {
    color: #e74c3c;
}

.menu-item.logout:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* Logged in button style */
.login-btn.logged-in {
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid #00d4ff;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    z-index: 10001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #27ae60;
    border-left: 4px solid #2ecc71;
}

.notification.error {
    background: #e74c3c;
    border-left: 4px solid #c0392b;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .auth-form {
        padding: 30px 25px;
    }
    
    .user-menu {
        right: 20px;
        left: 20px;
        min-width: auto;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}