* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

:root {
    --primary: #D710BA;
    --primary-dark: #B30E9B;
    --primary-light: #E83ACD;
    --secondary: #FA803E;
    --secondary-dark: #E06928;
    --secondary-light: #FF9A65;
    --dark: #0a0a0a;
    --darker: #000000;
    --dark-light: #1a1a1a;
    --light: #ffffff;
    --gray: #a0a0a0;
    --gray-light: #2a2a2a;
    --gray-lighter: #333333;
    --success: #10b981;
    --error: #ef4444;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}

body.auth{
    display: flex;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); */
    opacity: 0.9;
    z-index: -1;
}

/* Login Container */
.container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    height: 650px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-section {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--darker);
    position: relative;
}

.login-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(215, 16, 186, 0.05) 0%, rgba(250, 128, 62, 0.05) 100%);
    z-index: -1;
}

.graphic-section {
    flex: 1.2;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.graphic-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

/* Login Form Elements */
.welcome-text {
    margin-bottom: 2rem;
    text-align: center;
}

.welcome-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-text p {
    color: var(--gray);
    font-size: 1rem;
}

.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    animation: slideIn 0.4s ease-out;
    font-size: 0.9rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

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

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

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    z-index: 1;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--dark-light);
    color: var(--light);
}

.form-control::placeholder {
    color: var(--gray);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(215, 16, 186, 0.2);
    background: var(--dark);
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
    z-index: 2;
}

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

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

.checkbox-container {
    display: flex;
    align-items: center;
    color: var(--light);
}

.checkbox {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
}

.checkbox input {
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: var(--dark-light);
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "✓";
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    display: none;
}

.checkbox input:checked ~ .checkmark:after {
    display: block;
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    font-weight: 500;
}

.auth-link:hover {
    color: var(--secondary);
}

.btn {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--light);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(215, 16, 186, 0.3);
}

.signup-link {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* Graphic Section Content */
.logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo img {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: white;
    width: 40px;
    text-align: center;
}

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.feature-item p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Support Page Styles */
.support-page {
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.header-logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.header-logo img {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
}

.support-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

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

.support-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.simple-credentials {
    background: var(--darker);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
}

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

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

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

.credentials-header h3 {
    color: var(--light);
    font-size: 1.5rem;
    font-weight: 600;
}

.copy-all-btn {
    background: transparent;
    border: none;
    color: var(--light);
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.copy-all-btn:hover {
    background: rgba(215, 16, 186, 0.1);
}

.credentials-intro {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

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

.credential-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-light);
}

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

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

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

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

.url-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.password-text {
    color: var(--success);
    font-weight: 600;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
}

.copy-btn {
    background: var(--dark);
    border: 1px solid var(--gray-light);
    color: var(--gray);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    background: var(--gray-lighter);
    color: var(--primary);
}

.support-card {
    background: var(--darker);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
    }
    
    .support-container {
        padding: 1.5rem;
    }
    
    .support-hero h1 {
        font-size: 2.25rem;
    }
    
    .credential-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .credentials-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .feature-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .feature-item {
        min-width: 200px;
        flex-direction: column;
        text-align: center;
    }
}

/* Toast Notification */
.global-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Support Channels */
.support-channels .card-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--light);
}

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

.channel {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--dark-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-light);
}

.channel-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(215, 16, 186, 0.1);
    color: var(--primary);
    border-radius: var(--border-radius);
    font-size: 1.5rem;
}

.channel-info h4 {
    color: var(--light);
    margin-bottom: 0.5rem;
}

.channel-info p {
    color: var(--gray);
    margin-bottom: 0.75rem;
}

.support-email-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.email-text-compact {
    color: var(--primary);
    font-weight: 600;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
}

.copy-btn-small {
    background: transparent;
    border: 1px solid var(--gray-light);
    color: var(--gray);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
}

.copy-btn-small:hover {
    background: var(--gray-lighter);
    color: var(--primary);
}

.channel-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.channel-action:hover {
    color: var(--primary-light);
    gap: 0.75rem;
}

/* Support Notice */
.support-notice-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin: 1.5rem 0;
}

.support-notice-info i {
    color: #3B82F6;
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.support-notice-content p {
    margin-bottom: 0.75rem;
    color: #93C5FD;
    line-height: 1.6;
}

.support-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-top: 2rem;
}

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

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

/* Welcome Message */
.welcome-message {
    text-align: center;
}

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

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

.welcome-header h3 {
    color: var(--light);
    margin: 0;
}

.welcome-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

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

.feature-highlight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--dark-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-light);
}

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

.feature-highlight span {
    color: var(--light);
    font-weight: 500;
}

.signature {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-light);
}

.signature strong {
    color: var(--light);
    font-size: 1.1rem;
}

.signature p {
    color: var(--gray);
    margin: 0.5rem 0 0 0;
}

.credentials-note {
    background: var(--dark-light);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary);
}

.credentials-note p {
    margin: 0;
    color: var(--gray);
    line-height: 1.6;
}

.form-footer-link {
    margin-top: 1rem;
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
}

.info-tooltip {
    position: relative;
    display: flex;
    align-items: center;
}

.info-icon {
    color: var(--gray);
    font-size: 1rem;
    cursor: help;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background: var(--dark);
    color: var(--light);
    text-align: center;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    border: 1px solid var(--gray-light);
    box-shadow: var(--shadow);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark) transparent transparent transparent;
}

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

.loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.loading span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin: 0 2px;
    background-color: 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; }

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