/* Modern Neumorphic Design System - FIXED */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe 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);
}

:root {
    /* Core colors - #4823BD and #D608F2 */
    --primary: #4823BD;
    --primary-dark: #371B94;
    --primary-glow: #5F3DC4;
    --primary-soft: rgba(72, 35, 189, 0.1);
    --accent: #D608F2;
    --accent-dark: #B306CC;
    --accent-glow: #E040FB;
    --accent-soft: rgba(214, 8, 242, 0.1);
    
    /* Neumorphic specific */
    --bg: #0a0a0f;
    --bg-soft: #0f0f14;
    --surface: #14141c;
    --surface-light: #1c1c28;
    --surface-dark: #0c0c12;
    --text: #ffffff;
    --text-soft: #e8e8ff;
    --text-muted: #9494b3;
    
    /* Shadows - refined */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.5);
    --shadow-neumorph: 10px 10px 20px rgba(0, 0, 0, 0.5),
                      -5px -5px 10px rgba(72, 35, 189, 0.1);
    --shadow-neumorph-inset: inset 6px 6px 12px rgba(0, 0, 0, 0.5),
                            inset -3px -3px 8px rgba(72, 35, 189, 0.1);
    --shadow-neumorph-sm: 5px 5px 10px rgba(0, 0, 0, 0.5),
                          -3px -3px 6px rgba(72, 35, 189, 0.1);
    --shadow-glow: 0 0 20px rgba(214, 8, 242, 0.3);
    
    /* Border radius - consistent */
    --radius: 20px;
    --radius-sm: 14px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --radius-pill: 9999px;
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    /* background: var(--bg); */
    background-image: url(/themes/default/img/frontend/backgrounds/login.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

body.auth {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, var(--primary-soft), transparent 35%),
                radial-gradient(circle at 80% 70%, var(--accent-soft), transparent 35%);
    z-index: -1;
}

/* ===== CONTAINER - Proper proportions ===== */
.container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    height: 580px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

/* ===== LOGIN SECTION - 45% width ===== */
.login-section {
    flex: 0 0 50%;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--surface);
    position: relative;
    z-index: 2;
}

/* ===== GRAPHIC SECTION - 55% width, no overlap ===== */
.graphic-section {
    flex: 0 0 50%;
    background: linear-gradient(145deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.graphic-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1), transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(0, 0, 0, 0.2), transparent 50%);
}

.graphic-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
}

/* ===== LOGO ===== */
.logo {
    text-align: center;
    margin-bottom: 2rem;
}

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

/* ===== FEATURE LIST - Compact ===== */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: rgba(20, 20, 28, 0.6);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(30, 30, 40, 0.8);
    transform: translateY(-2px);
    border-color: rgba(214, 8, 242, 0.2);
}

.feature-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--accent);
    filter: drop-shadow(0 0 10px rgba(214, 8, 242, 0.4));
    width: 32px;
    text-align: center;
}

.feature-item h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
    color: var(--text);
}

.feature-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== WELCOME TEXT ===== */
.welcome-text {
    margin-bottom: 2rem;
}

.welcome-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

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

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

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-soft);
}

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

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

.form-control {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--surface-dark);
    color: var(--text);
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.5),
                inset -2px -2px 4px rgba(72, 35, 189, 0.1);
}

.form-control:focus {
    outline: none;
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.6),
                inset -2px -2px 6px rgba(72, 35, 189, 0.2),
                0 0 0 2px rgba(214, 8, 242, 0.1);
}

/* ===== PASSWORD TOGGLE ===== */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface);
    border: none;
    color: var(--accent);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 10px;
    transition: var(--transition);
    z-index: 2;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4),
                -2px -2px 4px rgba(72, 35, 189, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--accent-glow);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5),
                -3px -3px 6px rgba(72, 35, 189, 0.15);
    transform: translateY(-50%) scale(1.02);
}

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

.checkbox-container {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
}

.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: var(--surface-dark);
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.5),
                inset -2px -2px 4px rgba(72, 35, 189, 0.1);
}

.checkbox input:checked ~ .checkmark {
    background: linear-gradient(145deg, var(--primary), var(--accent));
    box-shadow: 0 0 15px rgba(214, 8, 242, 0.3);
}

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

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

/* ===== LINKS ===== */
.auth-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    margin-left: 10px;
    border-radius: 8px;
    background: var(--surface-dark);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4),
                -2px -2px 4px rgba(72, 35, 189, 0.1);
}

.auth-link:hover {
    color: var(--accent-glow);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5),
                -3px -3px 6px rgba(72, 35, 189, 0.15);
}

/* ===== BUTTON - Keeping your great button style ===== */
.btn {
    display: block;
    width: 100%;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(145deg, var(--primary), var(--accent));
    color: var(--text);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.5),
                -4px -4px 8px rgba(72, 35, 189, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(214, 8, 242, 0.4),
                8px 8px 16px rgba(0, 0, 0, 0.6),
                -5px -5px 12px rgba(72, 35, 189, 0.3);
}

/* ===== SIGNUP LINK ===== */
.signup-link {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1.5rem;
}

/* ===== SUPPORT PAGE ===== */
.support-page {
    min-height: 100vh;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.support-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

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

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

/* ===== CREDENTIALS CARD ===== */
.simple-credentials {
    background: var(--surface-dark);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-neumorph);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.credentials-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

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

.credential-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.credential-item:last-child {
    border-bottom: none;
}

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

.credential-label i {
    color: var(--accent);
    width: 16px;
    font-size: 0.9rem;
}

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

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

.url-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-neumorph-sm);
}

.password-text {
    color: var(--primary);
    font-weight: 600;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    background: var(--surface);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.copy-btn,.copy-all-btn {
    background: var(--surface);
    border: none;
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    box-shadow: var(--shadow-neumorph-sm);
}

.copy-btn-small {
    background: var(--surface);
    border: none;
    color: var(--text-muted);
    padding: 0.4rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    box-shadow: var(--shadow-neumorph-sm);
}

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

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

.channel {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--surface-dark);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-neumorph-sm);
    transition: var(--transition);
}

.channel:hover {
    box-shadow: var(--shadow-neumorph);
    transform: translateY(-2px);
    border-color: rgba(214, 8, 242, 0.1);
}

.channel-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--primary-soft), var(--accent-soft));
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.4);
}

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

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

.channel-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-neumorph-sm);
    transition: var(--transition);
}

.channel-action:hover {
    color: var(--accent-glow);
    box-shadow: var(--shadow-neumorph);
    gap: 0.6rem;
}

/* ===== NOTICES ===== */
.support-notice-info,
.support-notice {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--surface-dark);
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.5),
                inset -2px -2px 4px rgba(72, 35, 189, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 1.5rem 0;
}

.support-notice-info i,
.support-notice i {
    font-size: 1.25rem;
}

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

.support-notice i {
    color: var(--accent);
}

/* ===== FEATURE HIGHLIGHTS ===== */
.feature-highlight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--surface-dark);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-neumorph-sm);
}

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

.feature-highlight span {
    font-size: 0.85rem;
}

/* ===== RESPONSIVE - FIXED ===== */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
        max-width: 450px;
    }
    
    .login-section,
    .graphic-section {
        flex: 0 0 100%;
    }
    
    .graphic-section {
        padding: 2rem;
        order: -1;
    }
    
    .login-section {
        padding: 2rem;
    }
    
    .welcome-text h2 {
        font-size: 1.75rem;
    }
    
    .feature-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .feature-item {
        min-width: 240px;
    }
    
    .support-container {
        padding: 1.5rem;
    }
    
    .support-hero h1 {
        font-size: 2rem;
    }
    
    .credential-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .credential-label {
        width: auto;
    }
    
    .credential-value {
        width: 100%;
        flex-wrap: wrap;
    }
}

/* ===== TOAST ===== */
.global-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(145deg, var(--primary), var(--accent));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 0 30px rgba(214, 8, 242, 0.4),
                8px 8px 16px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-dark);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, var(--primary), var(--accent));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(145deg, var(--primary-dark), var(--accent-dark));
}

.form-footer-link{
    margin-top: 20px;
}

.navbar-brand > img{
    max-width: 400px;
    margin: 2rem;
}


.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;
}

.card-content{
    text-align: center;
}


.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; }