:root {
    /* Dark Theme (Default) - Deep & Premium */
    --primary: #38bdf8;
    --primary-rgb: 56, 189, 248;
    --primary-dark: #0ea5e9;
    --bg-dark: #020617;
    --bg-sidebar: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.4);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --accent: #10b981;
    --glass-border: rgba(255, 255, 255, 0.08);
    --sidebar-width: 260px;
    --reader-bg: #0f172a;
    --shadow-premium: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
    --primary: #0284c7;
    --primary-rgb: 2, 132, 199;
    --primary-dark: #0369a1;
    --bg-dark: #f8fafc;
    --bg-sidebar: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.8);
    --text-main: #0f172a;
    --text-dim: #64748b;
    --accent: #059669;
    --glass-border: rgba(0, 0, 0, 0.1);
    --reader-bg: #ffffff;
    --shadow-premium: 0 20px 50px -12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

svg {
    flex-shrink: 0;
}

/* App Loader */
.app-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    background: transparent;
    pointer-events: none;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.app-loader.active .loader-bar {
    width: 100%;
    animation: loading-pulse 2s infinite;
}

@keyframes loading-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Glassmorphism */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    height: 100vh;
    flex-shrink: 0;
    transition: all 0.3s ease;
    z-index: 200;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 16px rgba(var(--primary-rgb), 0.3);
}

.sidebar-logo span {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, var(--text-main), var(--text-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 15px;
}

.nav-item:hover {
    background: rgba(var(--primary-rgb), 0.05);
    color: var(--text-main);
    transform: translateX(4px);
}

.nav-item.active {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.2);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

/* Main Content */
.main-wrapper {
    flex-grow: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Important for containing flex children with overflow */
    background: radial-gradient(circle at 70% 10%, rgba(var(--primary-rgb), 0.05), transparent 600px),
                radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.05), transparent 600px);
}

.header {
    padding: 20px 48px 8px 48px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(var(--bg-dark), 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    flex-grow: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(128, 128, 128, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--text-main);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.icon-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: 30px;
    background: rgba(128, 128, 128, 0.08);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-main);
}

.profile-btn:hover {
    background: rgba(128, 128, 128, 0.15);
    border-color: var(--primary);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: white;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    border-radius: 18px;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-premium);
    z-index: 1000;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
}

.user-email {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    word-break: break-all;
}

.dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--text-main);
}

.dropdown-item.logout:hover {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

/* Content Container */
.content-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 48px;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--primary-rgb), 0.2) transparent;
}

.content-container::-webkit-scrollbar {
    width: 6px;
}

.content-container::-webkit-scrollbar-track {
    background: transparent;
}

.content-container::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.2);
    border-radius: 10px;
}

.content-container::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-rgb), 0.5);
}

/* Firefox scrollbar global */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--primary-rgb), 0.2) transparent;
}

/* Notifications */
.notification-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
}

.notification {
    min-width: 300px;
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-premium);
}

.notification.show {
    transform: translateX(0);
}

.notification.success { border-left: 4px solid var(--accent); }
.notification.error { border-left: 4px solid #f87171; }
.notification.info { border-left: 4px solid var(--primary); }

.notification-content {
    font-size: 14px;
    font-weight: 600;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}

/* Dashboard Specific Styles (Refined) */
.search-container {
    max-width: 500px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: rgba(128, 128, 128, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-main);
    font-size: 15px;
    transition: all 0.3s;
}

.search-input:focus {
    background: rgba(128, 128, 128, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.filter-scroll {
    display: flex;
    gap: 12px;
    padding: 16px 0 8px 0;
    margin-top: 8px;
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
    max-width: 100%;
    min-height: 56px;
    border-top: 1px solid var(--glass-border);
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--primary-rgb), 0.3) transparent;
    z-index: 10;
    -webkit-overflow-scrolling: touch;
}

.filter-scroll::-webkit-scrollbar {
    height: 4px;
}

.filter-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.filter-scroll::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.3);
    border-radius: 10px;
}

.filter-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-rgb), 0.6);
}

.filter-chip {
    padding: 8px 20px;
    border-radius: 30px;
    background: rgba(128, 128, 128, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-chip:hover {
    background: rgba(128, 128, 128, 0.1);
    border-color: var(--primary);
    color: var(--text-main);
}

.filter-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

@media (min-width: 1600px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-card {
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-body {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.card-summary {
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Reader Styles (Premium) */
.reader-overlay {
    position: fixed;
    top: 24px;
    right: 24px;
    bottom: 24px;
    width: calc(100% - 48px);
    max-width: 900px;
    border-radius: 32px;
    background: var(--reader-bg);
    z-index: 1000;
    transform: translateX(110%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.reader-overlay.active {
    transform: translateX(0);
}

.reader-content {
    padding: 60px 80px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--primary-rgb), 0.3) transparent;
}

.reader-content::-webkit-scrollbar {
    width: 6px;
}

.reader-content::-webkit-scrollbar-track {
    background: transparent;
}

.reader-content::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.3);
    border-radius: 10px;
}

.reader-content::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-rgb), 0.6);
}

.reader-title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

/* Auth Pages (Enhanced) */
.auth-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 56px;
    border-radius: 32px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
    .sidebar { width: 100px; padding: 32px 20px; align-items: center; }
    .sidebar-logo span, .nav-item span, .user-info, .theme-toggle span { display: none; }
    .nav-item { justify-content: center; width: 60px; height: 60px; padding: 0; }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .header { padding: 20px; }
    .content-container { padding: 24px; }
    .reader-content { padding: 40px 24px; }
    .reader-title { font-size: 32px; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Toggle Switch (Premium Glass Style) */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(128, 128, 128, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
    border: 1px solid var(--glass-border);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

input:checked + .toggle-slider {
    background-color: var(--primary);
    border-color: var(--primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.filter-chip {
    flex-shrink: 0;
}

/* ── List View ────────────────────────────────────────────────── */
.grid.list-view {
    grid-template-columns: 1fr;
    gap: 16px;
}

.grid.list-view .news-card {
    flex-direction: row;
    height: auto;
    max-height: 160px;
}

.grid.list-view .card-image {
    width: 200px;
    min-width: 200px;
    height: auto;
    border-radius: 0;
}

.grid.list-view .card-body {
    padding: 20px 24px;
}

.grid.list-view .card-title {
    font-size: 16px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.grid.list-view .card-summary {
    font-size: 13px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Seen/Read Indicator ─────────────────────────────────────── */
.news-card.seen {
    opacity: 0.65;
}

.news-card.seen .card-title {
    color: var(--text-dim);
}

.seen-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.news-card.seen .seen-dot {
    background: var(--glass-border);
}

/* ── Markdown Reader Body ────────────────────────────────────── */
.reader-body h1, .reader-body h2, .reader-body h3,
.reader-body h4, .reader-body h5, .reader-body h6 {
    font-weight: 800;
    line-height: 1.3;
    margin: 2em 0 0.75em;
    color: var(--text-main);
}

.reader-body h1 { font-size: 2em; }
.reader-body h2 { font-size: 1.5em; }
.reader-body h3 { font-size: 1.25em; }

.reader-body p {
    margin-bottom: 1.4em;
    color: var(--text-main);
}

.reader-body ul, .reader-body ol {
    margin: 0 0 1.4em 1.5em;
}

.reader-body li {
    margin-bottom: 0.5em;
}

.reader-body blockquote {
    border-left: 3px solid var(--primary);
    margin: 1.5em 0;
    padding: 12px 20px;
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 0 12px 12px 0;
    color: var(--text-dim);
    font-style: italic;
}

.reader-body code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    background: rgba(128, 128, 128, 0.12);
    padding: 2px 6px;
    border-radius: 6px;
}

.reader-body pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
    margin-bottom: 1.4em;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    line-height: 1.6;
}

.reader-body pre code {
    background: none;
    padding: 0;
}

.reader-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.reader-body hr {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 2em 0;
}

.reader-body strong { font-weight: 800; }
.reader-body em { font-style: italic; }

/* ── AI Format Button ───────────────────────────────────────── */
.ai-format-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--primary-rgb), 0.05));
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 20px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-format-btn:hover {
    background: rgba(var(--primary-rgb), 0.2);
    border-color: var(--primary);
}

.ai-format-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Pagination ──────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    padding-bottom: 24px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(128, 128, 128, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
}

.page-btn:hover, .page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-btn.active {
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ── Auth Mode Layout ───────────────────────────────────────── */
.main-wrapper.auth-mode {
    padding: 0;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.1), transparent 800px), var(--bg-dark);
}

.main-wrapper.auth-mode .content-container {
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ── Auth Cards (Premium) ───────────────────────────────────── */
.auth-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 20px auto;
    box-shadow: 0 12px 24px rgba(var(--primary-rgb), 0.3);
}

.auth-logo.accent {
    background: linear-gradient(135deg, var(--accent), #059669);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.3);
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: var(--text-dim);
    font-size: 15px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dim);
    margin-left: 4px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-dim);
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: rgba(128, 128, 128, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-main);
    font-size: 15px;
    transition: all 0.3s;
}

.input-wrapper input:focus {
    background: rgba(128, 128, 128, 0.12);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

.btn-block {
    width: 100%;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    font-weight: 700;
}

.auth-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.auth-footer {
    margin-top: 32px;
    text-align: center;
}

.auth-footer p {
    font-size: 14px;
    color: var(--text-dim);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    50% { transform: translateX(8px); }
    75% { transform: translateX(-8px); }
}

.animate-shake {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

