:root {
    --primary-dark: #9214D3;
    --primary: #BB2DE7;
    --primary-light: #63B1F7;
    --primary-hover: #A020D0;
    --secondary: #63B1F7;
    --secondary-hover: #4A9FE8;
    --accent: #FFFFFF;
    --bg: #0f0c1d;
    --surface: #1a1630;
    --text: #f0f2ff;
    --text-light: #a0a8d0;
    --text-active: #ffffff;
    --border: rgba(146, 20, 211, 0.15);
    --ring: rgba(146, 20, 211, 0.2);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-dark: rgba(0, 0, 0, 0.3);
    --hover-bg: rgba(146, 20, 211, 0.1);
    --active-bg: rgba(146, 20, 211, 0.2);
    --shadow-color: rgba(146, 20, 211, 0.2);
    --shadow-sm: 0 1px 2px rgba(146, 20, 211, 0.1);
    --shadow-md: 0 4px 6px rgba(146, 20, 211, 0.15), 0 2px 4px rgba(146, 20, 211, 0.1);
    --gradient: linear-gradient(135deg, #9214D3 0%, #BB2DE7 50%, #63B1F7 100%);
    --gradient-horizontal: linear-gradient(90deg, #9214D3 0%, #BB2DE7 50%, #63B1F7 100%);
}

/* Light theme variant */
[data-theme="light"] {
    --bg: #FAFAF8;
    --surface: #FFFFFF;
    --text: #1C1C1E;
    --text-light: #636366;
    --border: #E5E5E0;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-dark: rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 2px rgba(28, 28, 30, 0.06);
    --shadow-md: 0 4px 6px rgba(28, 28, 30, 0.04), 0 2px 4px rgba(28, 28, 30, 0.04);
}

* {
    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);
    letter-spacing: -0.01em;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    background-size: 0% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    padding-bottom: 2px;
}

a:hover {
    color: var(--primary-light);
    background-size: 100% 1px;
}

.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;
    position: relative;
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border);
}

.auth-form-panel::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

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

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

.auth-logo {
    text-align: center;
    /* margin-bottom: 1.5rem; */
}

.auth-logo img {
    height: 120px;
    width: auto;
    margin: auto;
    opacity: 0.9;
    filter: drop-shadow(0 0 10px rgba(146, 20, 211, 0.3));
}

/* Default theme (dark) - logo visibility */
.auth-logo img.logo-dark {
    display: block !important;
}

.auth-logo img.logo-light {
    display: none !important;
}

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

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


.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.auth-header h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.auth-header h1 span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-horizontal);
    opacity: 0.4;
    border-radius: 2px;
}

.auth-header p {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
}

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

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    background: var(--glass);
    color: var(--text);
    font-weight: 400;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--ring), 0 0 15px rgba(146, 20, 211, 0.1);
    background: var(--glass);
}

.form-group input::placeholder {
    color: var(--text-light);
    font-weight: 400;
    opacity: 0.7;
}

.password-field {
    position: relative;
}

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

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.25rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

.checkbox input {
    width: auto;
    accent-color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: 0.8125rem;
    background: var(--gradient);
    color: var(--text-active);
    border: none;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 15px rgba(146, 20, 211, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.submit-btn:hover {
    background: var(--gradient-horizontal);
    box-shadow: 0 8px 25px rgba(146, 20, 211, 0.4);
    transform: translateY(-2px);
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(146, 20, 211, 0.3);
}

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

.form-footer-link a {
    color: var(--primary-light);
    font-weight: 600;
}

.auth-graphic-panel {
    flex: 1;
    position: relative;
    background: var(--bg-sidebar);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-graphic-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgb(146 20 211 / 57%) 0%, #0000004f 50%),
        radial-gradient(circle at 80% 20%, rgb(99 177 247 / 39%) 0%, #0000003d 50%),
        radial-gradient(circle at 50% 50%, rgb(187 45 231 / 23%) 0%, #00000026 70%);
}

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

.graphic-icon {
    margin-bottom: 2rem;
    display: inline-block;
    padding: 1rem;
    border-radius: 1.25rem;
    background: var(--glass);
    box-shadow: 0 0 30px rgba(146, 20, 211, 0.2);
}

.graphic-icon svg {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

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

.graphic-content h2 em {
    font-style: normal;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.graphic-content h2 em::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-horizontal);
    opacity: 0.5;
}

.graphic-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
}

[data-theme="light"] .graphic-content p {
    color: var(--text);
}

.graphic-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('/public/theme/infinityailab2/img/bg-auth.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.9;
    mix-blend-mode: screen;
}

.alert-success {
    background: rgba(146, 20, 211, 0.1);
    color: var(--primary-light);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid rgba(146, 20, 211, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
}

.alert-error {
    color: #ff6b8a;
    font-size: 0.75rem;
    margin-top: 0.375rem;
    font-weight: 500;
}

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

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

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

.support-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.support-hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.support-hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-horizontal);
    opacity: 0.4;
}

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

.simple-credentials, .support-card {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(10px);
}

.simple-credentials:hover, .support-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    border-color: rgba(146, 20, 211, 0.25);
}

.credentials-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 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-light);
}

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

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

.copy-all-btn:hover {
    background: var(--gradient);
    color: var(--text-active);
    border-color: transparent;
}

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

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

.credential-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: var(--glass);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    transition: border-color 0.2s ease;
}

.credential-item:hover {
    border-color: var(--primary-light);
}

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

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

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

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

.url-link {
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
}

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

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

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

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

.tooltip-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: var(--text-active);
    padding: 0.375rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 500;
    white-space: nowrap;
    display: none;
    margin-bottom: 0.5rem;
    z-index: 10;
}

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

.password-text {
    font-family: 'SF Mono', 'Fira Code', monospace;
    background: var(--glass-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    color: var(--text);
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

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

.copy-btn:hover {
    background: var(--gradient);
    color: var(--text-active);
    border-color: transparent;
}

.credentials-note {
    background: rgba(99, 177, 247, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text);
    border-left: 3px solid var(--primary-light);
    line-height: 1.5;
}

.card-content h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.support-notice-info {
    display: flex;
    gap: 0.875rem;
    padding: 1rem;
    background: rgba(146, 20, 211, 0.1);
    border-radius: 0.75rem;
    margin: 1rem 0;
}

.support-notice-info i {
    font-size: 1.125rem;
    color: var(--primary-light);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.support-notice-content p {
    font-size: 0.8125rem;
    margin-bottom: 0.375rem;
    color: var(--text-light);
    line-height: 1.5;
}

.channel {
    display: flex;
    gap: 0.875rem;
    padding: 1rem;
    background: var(--glass);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    margin: 1rem 0;
    transition: border-color 0.2s ease;
}

.channel:hover {
    border-color: var(--primary-light);
}

.channel-icon i {
    font-size: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

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

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

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

.channel-action:hover {
    color: var(--secondary);
}

.support-notice {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(99, 177, 247, 0.1);
    border-radius: 0.75rem;
    margin-top: 1rem;
    border-left: 3px solid var(--primary-light);
}

.support-notice i {
    color: var(--primary-light);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.support-notice p {
    font-size: 0.8125rem;
    color: var(--text);
    line-height: 1.5;
}

.welcome-message {
    background: linear-gradient(135deg, rgba(146, 20, 211, 0.1), rgba(99, 177, 247, 0.1));
}

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

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

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

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

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

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

.global-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--gradient);
    color: var(--text-active);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    box-shadow: 0 8px 24px rgba(146, 20, 211, 0.3);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 500;
    font-size: 0.875rem;
}

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

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

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

@media (max-width: 640px) {
    .support-page {
        padding: 1.5rem 1rem;
    }
    .credential-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .simple-credentials, .support-card {
        padding: 1.25rem;
    }
    .support-hero h1 {
        font-size: 1.625rem;
    }
}

/* Alert enhancements */
.alert-success,
.alert-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success svg,
.alert-error svg {
    flex-shrink: 0;
}

/* Password toggle icon transitions */
.password-toggle .eye-icon,
.password-toggle .eye-off-icon {
    transition: opacity 0.15s ease;
}

/* Forgot password link refinement */
.forgot-link {
    font-weight: 500;
    font-size: 0.8125rem;
}

/* Graphic icon refinements */
.graphic-icon {
    position: relative;
}

.graphic-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(146, 20, 211, 0.3);
    opacity: 0.3;
    pointer-events: none;
}