/* ============================================
   History Charts — Auth Page Styles
   ============================================ */

/* Animated Background */
.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-node {
    position: absolute;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.01);
    animation: float 8s ease-in-out infinite;
}

.bg-node-1 {
    width: 200px;
    height: 120px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    border-color: rgba(255, 255, 255, 0.06);
}

.bg-node-2 {
    width: 160px;
    height: 90px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.015);
}

.bg-node-3 {
    width: 180px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
    border-color: rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.01);
}

.bg-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: pulse 4s ease-in-out infinite;
}

.bg-line-1 {
    width: 300px;
    top: 30%;
    left: 25%;
    transform: rotate(15deg);
}

.bg-line-2 {
    width: 250px;
    top: 55%;
    right: 20%;
    transform: rotate(-10deg);
    animation-delay: 2s;
}

/* Container */
.auth-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

/* Logo */
.auth-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    text-decoration: none;
    color: var(--text-primary);
    animation: fadeIn 0.6s ease-out;
}

.logo-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.logo-text {
    font-size: var(--font-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Card */
.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.6s ease-out 0.1s both;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-header h1 {
    font-size: var(--font-2xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xs);
}

.text-muted {
    color: var(--text-muted);
    font-size: var(--font-sm);
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 2px;
    background: var(--bg-canvas);
    border-radius: var(--radius-md);
    padding: 3px;
    margin-bottom: var(--space-xl);
}

.auth-tab {
    flex: 1;
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    transition: all var(--transition-fast);
}

.auth-tab.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.auth-tab:hover:not(.active) {
    color: var(--text-secondary);
}

/* Form */
.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.auth-error {
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    color: var(--color-red);
    font-size: var(--font-sm);
    margin-bottom: var(--space-md);
    animation: fadeIn 0.3s ease-out;
}

.auth-success {
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    color: var(--color-green);
    font-size: var(--font-sm);
    margin-bottom: var(--space-md);
    animation: fadeIn 0.3s ease-out;
}

.auth-submit {
    width: 100%;
    margin-top: var(--space-sm);
}

.auth-footer-text {
    text-align: center;
    margin-top: var(--space-lg);
    font-size: var(--font-sm);
    color: var(--text-muted);
}