:root {
    --bg: #f9fafb;
    --surface: #ffffff;
    --primary: #5855FE;
    --primary-hover: #4a47d9;
    --secondary: #9E36FE;
    --text: #1a1a1a;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --ring: rgba(88, 85, 254, 0.2);
}

[data-theme="dark"] {
    --bg: #0f0f13;
    --surface: #1a1a24;
    --primary: #5855FE;
    --primary-hover: #4a47d9;
    --secondary: #9E36FE;
    --text: #ececf0;
    --text-light: #9e9eae;
    --border: #2a2a35;
    --ring: rgba(88, 85, 254, 0.3);
}

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

body {
    font-family: 'Google Sans Flex', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

[data-theme="dark"] a {
    color: var(--primary);
}

[data-theme="dark"] .auth-header p {
    color: var(--text-light);
}

[data-theme="dark"] .form-group label {
    color: var(--text);
}

[data-theme="dark"] .checkbox {
    color: var(--text-light);
}

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

.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    padding: 2rem;
}

.auth-form-content {
    max-width: 400px;
    width: 100%;
}

.auth-header {
    margin-bottom: 2rem;
    text-align: center;
}


.auth-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.auth-logo img {
    height: 40px;
    width: auto;
    margin: auto;
    display: inline-block;
}

.logo-light, .logo-dark {
    height: 40px;
    width: auto;
}

[data-theme="light"] .logo-dark {
    display: none !important;
}

[data-theme="light"] .logo-light {
    display: block !important;
}

[data-theme="dark"] .logo-light {
    display: none !important;
}

[data-theme="dark"] .logo-dark {
    display: block !important;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-header p {
    color: var(--text-light);
}

.form-group {
    margin-bottom: 1.25rem;
}

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

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--surface);
    color: var(--text);
}

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

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

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 2.5rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
}

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

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.checkbox input {
    width: auto;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.submit-btn:hover {
    opacity: 0.9;
}

.form-footer-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

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

[data-theme="dark"] .form-footer-link {
    color: var(--text-light);
}

[data-theme="dark"] .form-footer-link a {
    color: var(--primary);
}

.auth-graphic-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-graphic-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.graphic-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.graphic-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
}

.chat-bubble {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 1.5rem;
    color: white;
    font-size: 1.125rem;
    font-weight: 500;
    max-width: 280px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.chat-bubble:nth-child(1) {
    align-self: flex-start;
    border-bottom-left-radius: 0.25rem;
}

.chat-bubble:nth-child(2) {
    align-self: flex-end;
    border-bottom-right-radius: 0.25rem;
}

.chat-bubble:nth-child(3) {
    align-self: center;
    background: white;
    color: #5855FE;
}

[data-theme="dark"] .chat-bubble:nth-child(3) {
    background: var(--surface);
    color: var(--primary);
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }
    .auth-graphic-panel {
        display: none;
    }
}

.alert-success {
    background: rgba(46, 125, 50, 0.1);
    color: #4caf50;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

[data-theme="dark"] .alert-success {
    background: rgba(76, 175, 80, 0.15);
    color: #81c784;
}

.alert-error {
    color: #ef5350;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.quote {
    color: #fff;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 1rem;
    opacity: 0.9;
}

.features span {
    display: flex;
    color: #fff;
    align-items: center;
    gap: 0.5rem;
}


/* SUPPORT PAGE */



    .support-page {
        min-height: 100vh;
        background: var(--bg);
        padding: 2rem 1rem;
    }

    .support-container {
        max-width: 900px;
        margin: 0 auto;
    }

    .support-hero {
        text-align: center;
        margin-bottom: 2rem;
    }

    .support-hero h1 {
        font-size: 2rem;
        font-weight: 600;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        margin-bottom: 0.5rem;
    }

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

    /* Credentials Card */
    .simple-credentials, .support-card {
        background: var(--surface);
        border-radius: 1rem;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border: 1px solid var(--border);
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }

    .credentials-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

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

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

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

    .copy-all-btn {
        background: var(--primary-soft);
        border: 1px solid var(--border);
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        color: var(--primary);
        font-size: 0.875rem;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .copy-all-btn:hover {
        background: var(--primary);
        color: white;
    }

    .credentials-intro {
        color: var(--text-light);
        margin-bottom: 1.25rem;
        font-size: 0.875rem;
    }

    .credentials-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.25rem;
    }

    .credential-item {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem;
        padding: 0.75rem;
        background: var(--bg);
        border-radius: 0.75rem;
        border: 1px solid var(--border);
    }

    .credential-label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        min-width: 110px;
    }

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

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

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

    .url-link {
        color: var(--primary);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
    }

    .url-link:hover {
        text-decoration: underline;
    }

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

    .info-tooltip {
        position: relative;
        display: inline-flex;
        cursor: help;
    }

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

    .tooltip-text {
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: var(--surface);
        color: var(--text);
        padding: 0.25rem 0.5rem;
        border-radius: 0.25rem;
        font-size: 0.7rem;
        white-space: nowrap;
        border: 1px solid var(--border);
        display: none;
        margin-bottom: 0.5rem;
        z-index: 10;
    }

    .info-tooltip:hover .tooltip-text {
        display: block;
    }

    .password-text {
        font-family: monospace;
        background: var(--bg);
        padding: 0.25rem 0.5rem;
        border-radius: 0.25rem;
        color: var(--text);
    }

    .copy-btn {
        background: transparent;
        border: 1px solid var(--border);
        padding: 0.25rem 0.5rem;
        border-radius: 0.375rem;
        font-size: 0.7rem;
        cursor: pointer;
        color: var(--text-light);
        transition: all 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
    }

    .copy-btn:hover {
        background: var(--primary-soft);
        color: var(--primary);
        border-color: var(--primary);
    }

    .credentials-note {
        background: var(--primary-soft);
        padding: 0.75rem;
        border-radius: 0.5rem;
        font-size: 0.8rem;
        color: var(--text);
        border-left: 3px solid var(--primary);
    }

    /* Card Content */
    .card-content h3 {
        font-size: 1.125rem;
        font-weight: 600;
        margin-bottom: 1rem;
        color: var(--text);
    }

    .support-notice-info {
        display: flex;
        gap: 1rem;
        padding: 1rem;
        background: rgba(88,85,254,0.08);
        border-radius: 0.75rem;
        margin: 1rem 0;
    }

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

    .support-notice-content p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        color: var(--text-light);
    }

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

    .channel {
        display: flex;
        gap: 1rem;
        padding: 1rem;
        background: var(--bg);
        border-radius: 0.75rem;
        border: 1px solid var(--border);
        transition: all 0.2s;
    }

    .channel:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

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

    .channel-info h4 {
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

    .channel-info p {
        font-size: 0.75rem;
        color: var(--text-light);
        margin-bottom: 0.5rem;
    }

    .channel-action {
        color: var(--primary);
        text-decoration: none;
        font-size: 0.75rem;
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
    }

    .channel-action:hover {
        text-decoration: underline;
    }

    .support-notice {
        display: flex;
        gap: 0.75rem;
        padding: 0.75rem;
        background: rgba(255, 193, 7, 0.1);
        border-radius: 0.5rem;
        margin-top: 1rem;
        border-left: 3px solid #ffc107;
    }

    .support-notice i {
        color: #ffc107;
    }

    .support-notice p {
        font-size: 0.8rem;
        color: var(--text);
    }

    /* Welcome Message */
    .welcome-message {
        background: linear-gradient(135deg, rgba(88,85,254,0.05), rgba(158,54,254,0.05));
    }

    .welcome-header {
        text-align: center;
        margin-bottom: 1rem;
    }

    .welcome-text {
        text-align: center;
        color: var(--text-light);
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

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

    .feature-highlight {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.8rem;
        color: var(--text);
    }

    .feature-highlight i {
        color: var(--primary);
    }

    .signature {
        text-align: center;
        padding-top: 1rem;
        border-top: 1px solid var(--border);
        color: var(--text-light);
        font-size: 0.8rem;
    }

    /* Toast */
    .global-toast {
        position: fixed;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%) translateY(100px);
        background: var(--surface);
        color: var(--text);
        padding: 0.75rem 1.5rem;
        border-radius: 2rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 1000;
        transition: transform 0.3s ease;
        border: 1px solid var(--border);
    }

    .global-toast i {
        color: #4caf50;
    }

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

    @media (max-width: 640px) {
        .support-page {
            padding: 1rem;
        }
        .credential-item {
            flex-direction: column;
            align-items: flex-start;
        }
        .channels-grid {
            grid-template-columns: 1fr;
        }
    }