/**
 * Auth Pages Styles (Login, Register)
 * Corporate Style v4 - matching landing design
 */

/* CSS Variables */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f4f5;
    --bg-card: #ffffff;
    --text-primary: #18181b;
    --text-secondary: #52525b;
    --text-muted: #a1a1aa;
    --border: #e4e4e7;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-light: #eff6ff;
}

.dark {
    --bg-primary: #0f0f10;
    --bg-secondary: #1a1a1c;
    --bg-card: #242428;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border: #2e2e32;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-light: rgba(59, 130, 246, 0.1);
}

/* Solid accent sidebar */
.auth-sidebar {
    background-color: var(--accent);
}

/* Password visibility toggle */
.password-toggle {
    cursor: pointer;
    user-select: none;
}

/* Form input styles */
.auth-input {
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    transition: all 0.15s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dark .auth-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.auth-input::placeholder {
    color: var(--text-muted);
}

/* Feature list animations */
.feature-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Theme toggle button */
.theme-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* Primary button */
.btn-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    background-color: var(--accent);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-auth:hover {
    background-color: var(--accent-hover);
}

/* Language switcher */
.lang-btn {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.lang-btn-inactive {
    color: var(--text-muted);
    background: transparent;
}

.lang-btn-inactive:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.lang-btn-active {
    color: var(--accent);
    background: var(--accent-light);
}

/* Checkbox styling */
.auth-checkbox {
    accent-color: var(--accent);
}

/* Link styles */
.auth-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.auth-link:hover {
    color: var(--accent-hover);
}

/* Error alert */
.auth-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 1rem;
}

.dark .auth-error {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Footer */
.auth-footer {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
}

.lang-toggle:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}
