/* ============================================
   HeyGen Style - Auth Page
   Clean, minimal, professional
   ============================================ */

/* CSS Variables - HeyGen Color Palette */
:root {
    --primary: #8B5CF6;
    --primary-hover: #7C3AED;
    --primary-light: #EDE9FE;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-tertiary: #9CA3AF;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    --border-light: #E5E7EB;
    --border-normal: #D1D5DB;
    --success: #10B981;
    --error: #EF4444;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-primary);
    background: var(--bg-secondary);
}

/* ============================================
   Auth Container - Clean Layout
   ============================================ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-secondary);
}

/* Remove gradient balls */
.auth-background {
    display: none;
}

.gradient-ball {
    display: none;
}

/* ============================================
   Auth Content - Centered Card
   ============================================ */
.auth-content {
    width: 100%;
    max-width: 440px;
}

/* ============================================
   Auth Header - Minimalist Logo
   ============================================ */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.logo-icon {
    font-size: 2rem;
    animation: none; /* Remove pulse animation */
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-shadow: none;
}

.tagline {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

/* ============================================
   Auth Card - Clean White Card
   ============================================ */
.auth-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    padding: 2rem;
}

/* ============================================
   Tabs - Subtle Design
   ============================================ */
.tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.tab-btn {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.625rem 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -1px;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-btn:hover {
    color: var(--text-primary);
}

/* ============================================
   Tab Content
   ============================================ */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================
   Google Button - Clean Design
   ============================================ */
.google-button {
    width: 100%;
    height: 44px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--bg-primary);
    border: 1px solid var(--border-normal);
    color: var(--text-primary);
    transition: all 0.2s;
    margin-bottom: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.google-button:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-normal);
}

.google-icon {
    width: 18px;
    height: 18px;
}

/* ============================================
   Divider - Subtle Line
   ============================================ */
.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-tertiary);
    font-size: 0.8125rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.divider span {
    padding: 0 1rem;
}

/* ============================================
   Form Elements - Clean Inputs
   ============================================ */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group input {
    width: 100%;
    height: 44px;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-normal);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: all 0.2s;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group input::placeholder {
    color: var(--text-tertiary);
}

/* ============================================
   Auth Button - Primary Action
   ============================================ */
.auth-button {
    width: 100%;
    height: 44px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
    background: var(--primary);
    border: none;
    color: white;
    transition: all 0.2s;
    cursor: pointer;
}

.auth-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   Auth Tips - Small Text
   ============================================ */
.auth-tips {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    margin-top: 1rem;
}

.auth-tips a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    margin-left: 0.25rem;
    transition: color 0.2s;
}

.auth-tips a:hover {
    color: var(--primary-hover);
}

/* ============================================
   Auth Footer - Feature List
   ============================================ */
.auth-footer {
    margin-top: 2rem;
}

.features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.feature-icon {
    font-size: 1.5rem;
    display: block;
}

/* ============================================
   Toast Notification - Clean Alert
   ============================================ */
.toast {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-1rem);
    transition: all 0.3s ease;
    pointer-events: none;
    max-width: 400px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast.success {
    background: var(--success);
    color: white;
}

.toast.error {
    background: var(--error);
    color: white;
}

.toast.info {
    background: var(--primary);
    color: white;
}

/* ============================================
   Feature Buttons - For Logged-in State
   ============================================ */
.feature-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.feature-button:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
}

.logout-button {
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--error);
    border-radius: var(--radius-md);
    color: var(--error);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.logout-button:hover {
    background: var(--error);
    color: white;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 640px) {
    .auth-container {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.5rem;
    }
    
    .logo h1 {
        font-size: 1.375rem;
    }
    
    .features {
        gap: 1.5rem;
    }
    
    .feature-item {
        font-size: 0.75rem;
    }
    
    .tab-btn {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }
    
    .form-group input,
    .google-button,
    .auth-button {
        height: 40px;
        font-size: 0.8125rem;
    }
}
