:root {
    --primary: #8B5CF6;
    --primary-light: rgba(139, 92, 246, 0.15);
    --primary-dark: #7C3AED;
    --bg: #0A0A0F;
    --surface: #12121A;
    --surface-light: #1A1A26;
    --surface-dark: #0A0A0F;
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0FF;
    --text-muted: #9494B3;
    --border: rgba(255, 255, 255, 0.08);
    --border-focus: #8B5CF6;
    --shadow-sm: 0 4px 20px -8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 30px 60px -12px rgba(0, 0, 0, 0.7);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

/* Container */
.auth-container {
    display: flex;
    min-height: 100vh;
}

/* Left Panel - Form */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg);
}

.auth-form-content {
    width: 100%;
    max-width: 440px;
    padding: 1rem;
}

/* Logo */
.auth-logo {
    margin-bottom: 3rem;
}

.auth-logo img {
    height: 36px;
    width: auto;
    filter: brightness(1) drop-shadow(0 0 20px rgba(139, 92, 246, 0.3));
}

/* Headline */
.auth-headline {
    margin-bottom: 2.5rem;
}

.auth-headline h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.auth-headline p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Social Login */
.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 2rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
}

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.divider-line {
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

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

/* Password Field */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--primary);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
}

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    cursor: pointer;
}

.checkbox input {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    accent-color: var(--primary);
    cursor: pointer;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #a78bfa 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px -8px var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -8px var(--primary);
}

.submit-btn i {
    font-size: 1rem;
}

/* Support Link */
.support-link {
    display: block;
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.support-link:hover {
    color: var(--primary);
}

/* Right Panel - Graphic */
.auth-graphic-panel {
    flex: 1;
    position: relative;
    background: linear-gradient(145deg, #1a1a2a 0%, #12121f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.graphic-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    padding: 2rem;
    text-align: center;
}

.graphic-icon {
    margin-bottom: 2rem;
}

.graphic-icon svg {
    width: 120px;
    height: 120px;
}

.graphic-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.graphic-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.graphic-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('/bg-auth.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    mix-blend-mode: overlay;
}

/* Footer Link */
.form-footer-link {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-footer-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

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

/* Alert Success */
.alert-success {
    padding: 1rem 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10b981;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    color: #10b981;
    font-size: 0.95rem;
}

.alert-success i {
    color: #10b981;
    margin-right: 0.5rem;
}

/* Loading Spinner */
.loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.loading span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    animation: loading 1.4s infinite ease-in-out both;
}

.loading span:nth-child(1) { animation-delay: -0.32s; }
.loading span:nth-child(2) { animation-delay: -0.16s; }
.loading span:nth-child(3) { animation-delay: 0; }

@keyframes loading {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-headline h1 {
        font-size: 2rem;
    }
    
    .graphic-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-graphic-panel {
        min-height: 400px;
        order: -1;
    }
    
    .auth-form-content {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-headline h1 {
        font-size: 1.8rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

/* Toast Overrides */
#toast-container > div {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-md) !important;
    background: var(--surface) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
}



/* Support Page Styles - Dark Theme */
/* Support Page - Add Login Graphic as Background */
.support-page {
    min-height: 100vh;
    padding: 2rem;
    background: linear-gradient(145deg, #1a1a2a 0%, #12121f 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.support-page::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('/bg-auth.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

.support-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header-logo {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}


.header-logo .navbar-brand img {
    height: 40px;
    width: auto;
    filter: brightness(1) drop-shadow(0 0 20px rgba(139, 92, 246, 0.3));
}
/* Hero Section */
.support-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.support-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.support-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Credentials Card */
.simple-credentials {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.credentials-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-left i {
    font-size: 1.5rem;
    color: var(--primary);
}

.header-left h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.credentials-intro {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.credentials-list {
    margin-bottom: 1.5rem;
}

.credential-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--surface-light);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
}

.credential-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 130px;
    flex-shrink: 0;
}

.credential-label i {
    color: var(--primary);
    width: 18px;
    font-size: 1rem;
}

.credential-label span {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.credential-value {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.url-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.url-link:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.external-icon {
    font-size: 0.8rem;
    opacity: 0.7;
}

.password-text {
    color: var(--primary);
    font-weight: 600;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    background: var(--surface);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.copy-btn, .copy-all-btn, .copy-btn-small {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
}

.copy-btn-small {
    padding: 0.4rem 0.8rem;
}

.copy-btn:hover, .copy-all-btn:hover, .copy-btn-small:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.info-tooltip {
    position: relative;
    display: inline-flex;
    margin-left: 0.5rem;
}

.info-icon {
    color: var(--text-muted);
    cursor: help;
    font-size: 0.9rem;
}

.info-icon:hover {
    color: var(--primary);
}

.tooltip-text {
    visibility: hidden;
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-light);
    color: var(--text-secondary);
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    white-space: nowrap;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.info-tooltip:hover .tooltip-text {
    visibility: visible;
}

.credentials-note {
    background: var(--surface-light);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.credentials-note strong {
    color: var(--primary);
}

/* Support Card */
.support-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.card-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Support Notice */
.support-notice-info {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: var(--surface-light);
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 1.5rem 0;
}

.support-notice-info i {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.support-notice-content p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.support-notice-content p:last-child {
    margin-bottom: 0;
}

.support-notice-content strong {
    color: var(--primary);
}

/* Channels Grid */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.channel {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--surface-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.channel:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.channel-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 1.25rem;
    border: 1px solid var(--border);
}

.channel-info {
    flex: 1;
}

.channel-info h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.channel-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.support-email-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    width: fit-content;
}

.email-text-compact {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.channel-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.channel-action:hover {
    gap: 0.75rem;
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.support-notice {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: var(--surface-light);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.support-notice i {
    font-size: 1.25rem;
    color: var(--primary);
}

.support-notice p {
    margin: 0;
    color: var(--text-secondary);
}

.support-notice strong {
    color: var(--primary);
}

/* Welcome Message */
.welcome-message {
    background: linear-gradient(145deg, var(--surface), var(--surface-light));
}

.welcome-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.welcome-header i {
    font-size: 1.5rem;
    color: var(--primary);
}

.welcome-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.welcome-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.welcome-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-highlight {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface-light);
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
}

.feature-highlight i {
    color: var(--primary);
    font-size: 0.9rem;
}

.feature-highlight span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.signature {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.signature strong {
    color: var(--text-primary);
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.signature p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

/* Toast Notification */
.global-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--surface);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: 1px solid var(--primary);
}

.global-toast i {
    color: var(--primary);
}

.global-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .support-page {
        padding: 1rem;
    }
    
    .support-hero h1 {
        font-size: 2rem;
    }
    
    .support-subtitle {
        font-size: 1rem;
    }
    
    .credential-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .credential-label {
        width: auto;
    }
    
    .credential-value {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .channels-grid {
        grid-template-columns: 1fr;
    }
    
    .support-notice-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .welcome-features {
        flex-direction: column;
    }
    
    .feature-highlight {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .credentials-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .copy-all-btn {
        width: 100%;
        justify-content: center;
    }
    
    .support-email-compact {
        width: 100%;
        justify-content: space-between;
    }
    
    .global-toast {
        width: 90%;
        text-align: center;
    }
}

