/* Global Signup System Styles */

/* Floating Signup Button */
.global-signup-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.global-signup-float-btn {
    background: linear-gradient(135deg, var(--neon-green), var(--accent));
    color: var(--dark-bg);
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 255, 65, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    justify-content: center;
}

.global-signup-float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 255, 65, 0.4);
    background: linear-gradient(135deg, var(--accent-hover), var(--neon-green));
}

.global-signup-float-btn:active {
    transform: translateY(0);
}

.global-signup-float-btn i {
    font-size: 18px;
}

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

.global-signup-content {
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.global-signup-header {
    background: linear-gradient(135deg, var(--dark-card), var(--dark-surface));
    padding: 30px 30px 20px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
}

.global-signup-header h2 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--neon-green), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.global-signup-header p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.close-signup-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-signup-modal:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Tabs */
.global-signup-tabs {
    display: flex;
    background: var(--dark-bg);
    border-radius: 0;
    margin: 0;
    border-bottom: 1px solid var(--glass-border);
}

.signup-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.signup-tab-btn.active {
    color: var(--text-primary);
    background: var(--dark-surface);
}

.signup-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, var(--neon-green), var(--accent));
}

.signup-tab-btn:hover:not(.active) {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

/* Form Containers */
.signup-form-container {
    display: none;
    padding: 30px;
}

.signup-form-container.active {
    display: block;
}

/* Form Styles */
.global-signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    background: var(--dark-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 15px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--neon-green);
}

.checkbox-label a {
    color: var(--neon-green);
    text-decoration: none;
    font-weight: 500;
}

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

/* Submit Button */
.signup-submit-btn {
    background: linear-gradient(135deg, var(--neon-green), var(--accent));
    color: var(--dark-bg);
    border: none;
    border-radius: 12px;
    padding: 18px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.signup-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 65, 0.3);
}

.signup-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.signup-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sign In Footer */
.signin-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.signin-footer a {
    color: var(--neon-green);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

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

/* User Menu Styles */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-btn {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.user-menu-btn:hover {
    background: var(--dark-surface);
    border-color: var(--neon-green);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--glass-border);
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: var(--dark-card);
    color: var(--neon-green);
}

.user-dropdown a i {
    width: 16px;
    text-align: center;
}

/* Notification Styles */
.global-signup-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.global-signup-notification.success {
    border-left: 4px solid var(--success);
}

.global-signup-notification.error {
    border-left: 4px solid var(--danger);
}

.global-signup-notification.info {
    border-left: 4px solid var(--warning);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.close-notification {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-notification:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .global-signup-float {
        bottom: 20px;
        right: 20px;
    }
    
    .global-signup-float-btn {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 120px;
    }
    
    .global-signup-content {
        width: 95%;
        margin: 20px;
        max-height: 95vh;
    }
    
    .global-signup-header {
        padding: 25px 20px 15px;
    }
    
    .global-signup-header h2 {
        font-size: 24px;
    }
    
    .signup-form-container {
        padding: 25px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .global-signup-notification {
        right: 20px;
        left: 20px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .global-signup-float-btn {
        padding: 10px 15px;
        font-size: 13px;
        min-width: 100px;
    }
    
    .global-signup-float-btn .float-text {
        display: none;
    }
    
    .global-signup-header h2 {
        font-size: 22px;
    }
    
    .global-signup-header p {
        font-size: 14px;
    }
    
    .signup-tab-btn {
        padding: 15px;
        font-size: 14px;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .global-signup-content {
        background: var(--dark-surface);
        border-color: var(--glass-border);
    }
    
    .form-group input {
        background: var(--dark-bg);
        border-color: var(--glass-border);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .global-signup-float-btn {
        border: 2px solid var(--text-primary);
    }
    
    .global-signup-content {
        border: 2px solid var(--text-primary);
    }
    
    .form-group input {
        border: 2px solid var(--text-primary);
    }
}
