:root {
    --bg: #FAFAF8;
    --surface: #FFFFFF;
    --primary: #0b99fd;
    --primary-hover: #0985df;
    --secondary: #b54bfd;
    --secondary-hover: #a03ae8;
    --accent: #5a5dfa;
    --text: #1C1C1E;
    --text-light: #636366;
    --border: #E5E5E0;
    --ring: rgba(11, 153, 253, 0.15);
    --shadow-sm: 0 1px 2px rgba(90, 93, 250, 0.06);
    --shadow-md: 0 4px 6px rgba(90, 93, 250, 0.04), 0 2px 4px rgba(90, 93, 250, 0.04);
}

[data-theme="dark"] {
    --bg: #0D0D0F;
    --surface: #1C1C1E;
    --primary: #0b99fd;
    --primary-hover: #0985df;
    --secondary: #b54bfd;
    --secondary-hover: #a03ae8;
    --accent: #5a5dfa;
    --text: #F5F5F7;
    --text-light: #98989D;
    --border: #2C2C2E;
    --ring: rgba(11, 153, 253, 0.2);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.15);
}

* {
    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);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    background: linear-gradient(to right, var(--primary), var(--primary));
    background-size: 0% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    padding-bottom: 2px;
}

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

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

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

.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: 55px;
    width: auto;
    margin: auto;
    margin-bottom: 10px;
    display: inline-block;
    opacity: 0.9;
}

.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

[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: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.auth-header h1 span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.auth-header h1 span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary);
    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(--surface);
    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), var(--shadow-sm);
}

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

.password-field {
    position: relative;
}

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

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 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);

}

.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(--accent);
    color: var(--text);
    border: none;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    isolation: isolate; /* Creates new stacking context */
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1; /* Places gradient behind the text */
    border-radius: inherit;
}

.submit-btn:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

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

.submit-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.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);
    font-weight: 600;
}

.auth-graphic-panel {
    flex: 1;
    position: relative;
    background: var(--bg);
    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%, rgba(196, 0, 8, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(232, 184, 0, 0.04) 0%, transparent 50%);
}

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

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

.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;
    color: var(--primary);
    position: relative;
}

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

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

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

.alert-success {
    background: rgba(196, 0, 8, 0.05);
    color: var(--primary);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid rgba(196, 0, 8, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error {
    color: var(--primary);
    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 {
    color: var(--primary);
    position: relative;
}

.support-hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary);
    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;
}

.simple-credentials:hover, .support-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

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

.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(--accent);
    color: var(--surface);
    border-color: var(--accent);
}

.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(--bg);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    transition: border-color 0.2s ease;
}

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

.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);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
}

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

.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(--accent);
    color: var(--surface);
    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(--bg);
    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(--accent);
    color: var(--surface);
    border-color: var(--accent);
}

.credentials-note {
    background: rgba(232, 184, 0, 0.06);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text);
    border-left: 3px solid var(--secondary);
    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(196, 0, 8, 0.04);
    border-radius: 0.75rem;
    margin: 1rem 0;
}

.support-notice-info i {
    font-size: 1.125rem;
    color: var(--primary);
    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(--bg);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    margin: 1rem 0;
    transition: border-color 0.2s ease;
}

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

.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);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

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

.support-notice {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(232, 184, 0, 0.06);
    border-radius: 0.75rem;
    margin-top: 1rem;
    border-left: 3px solid var(--secondary);
}

.support-notice i {
    color: var(--secondary);
    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(196, 0, 8, 0.03), rgba(232, 184, 0, 0.03));
}

.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(--accent);
    color: var(--surface);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    box-shadow: 0 8px 24px rgba(28, 28, 30, 0.15);
    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(--secondary);
}

.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 var(--border);
    opacity: 0.3;
    pointer-events: none;
}

.bg-auth-login{
    background: url('/public/theme/talkerai/img/object-talker-cover.png');
}