/* ============================================
   1. ROOT VARIABLES
============================================ */
:root {
    --primary: #E65856;
    --primary-light: rgba(230, 88, 86, 0.15);
    --primary-dark: #DE3A6C;
    --bg: #0A0A0F;
    --surface: #12121A;
    --surface-light: #1A1A26;
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0FF;
    --text-muted: #9494B3;
    --border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 4px 20px -8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
    --radius-md: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
}

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

.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: 400px;
}

.auth-graphic-panel {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #0a0c15 0%, #1a0f15 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

/* ============================================
   3. LOGO & HEADLINE
============================================ */
.auth-header {
    margin-bottom: 2rem;
}

.auth-logo img {
    max-width: 60%;
}

.auth-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.auth-headline h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

/* ============================================
   4. FORM STYLES
============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

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

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: var(--transition);
}

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

.password-field {
    position: relative;
}

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

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

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

/* ============================================
   5. FORM OPTIONS & BUTTONS
============================================ */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.5rem 0;
}

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

.checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

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

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

.submit-btn {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

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

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

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

/* ============================================
   6. GRAPHIC PANEL
============================================ */
.graphic-icon {
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

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

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

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

/* ============================================
   7. RESPONSIVE
============================================ */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-graphic-panel {
        min-height: 280px;
        order: -1;
    }
    
    .auth-form-panel {
        padding: 2rem 1.5rem;
    }
    
    .auth-form-content {
        max-width: 100%;
    }
    
    .graphic-content h2 {
        font-size: 1.25rem;
    }
    
    .graphic-icon svg {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .auth-headline h1 {
        font-size: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .submit-btn {
        padding: 0.75rem;
    }
}



/* ============================================
   7. ANIMATIONS
============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ============================================
   9. SUPPORT PAGE STYLES
============================================ */
.support-page {
    min-height: 100vh;
    padding: 2rem;
    background: var(--bg);
}

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

.header-logo img {
    height: 50px;
    width: auto;
}

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

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

.support-hero h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

.simple-credentials,
.support-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.credentials-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    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.25rem;
    color: var(--primary);
}

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

.copy-all-btn,
.copy-btn {
    background: var(--surface-light);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.copy-all-btn:hover,
.copy-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

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

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

.credential-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 120px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

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

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

.url-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
}

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

.password-text {
    background: var(--surface-light);
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--primary);
}

.credentials-note {
    background: var(--surface-light);
    padding: 1rem;
    border-radius: 12px;
    border-left: 3px solid var(--primary);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

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

.support-notice-info {
    background: var(--surface-light);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

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

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

.channels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.channel {
    background: var(--surface-light);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    transition: var(--transition);
}

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

.channel-icon {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

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

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

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

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

.support-notice {
    background: var(--surface-light);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

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

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

.welcome-message {
    background: linear-gradient(135deg, var(--surface), var(--surface-light));
}

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

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

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

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

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

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

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

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

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

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

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

.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: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-size: 0.875rem;
    border: 1px solid var(--primary);
    box-shadow: var(--shadow-md);
}

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

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

@media (max-width: 768px) {
    .support-page {
        padding: 1rem;
    }
    
    .channels-grid {
        grid-template-columns: 1fr;
    }
    
    .credential-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .credential-label {
        width: auto;
    }
    
    .support-hero h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .credentials-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .copy-all-btn {
        width: 100%;
        text-align: center;
    }
}



.alert-success {
    background: var(--surface-light);
    border-left: 4px solid #10b981;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    color: #10b981;
    font-size: 0.875rem;
}

.alert-error {
    background: var(--surface-light);
    border-left: 4px solid var(--primary);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-top: 0.5rem;
    color: var(--primary);
    font-size: 0.75rem;
}