/* ============================================
   PNEUOMA Authentication Styles
   ============================================ */

:root {
    --bg-primary: #0a0c10;
    --bg-secondary: #0d1117;
    --bg-card: #161b22;
    --bg-input: #0d1117;
    
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    
    --accent-primary: #06b6d4;
    --accent-glow: #64ffda;
    --accent-purple: #a855f7;
    
    --border-default: #30363d;
    --border-focus: #06b6d4;
    
    --error: #f85149;
    --success: #3fb950;
    
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', var(--font-sans);
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Auth Container */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

@media (max-width: 900px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-features {
        display: none;
    }
}

/* Auth Card */
.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-2xl);
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    margin-bottom: var(--space-xl);
}

.logo-greek {
    font-size: 1.5rem;
    color: var(--accent-glow);
    opacity: 0.6;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.auth-card h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    position: relative;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.input-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.forgot-link {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 0.75rem;
    color: var(--accent-primary);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Error Message */
.error-message {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.error-message.hidden {
    display: none;
}

/* Buttons */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-glow));
    border: none;
    border-radius: var(--radius-sm);
    color: var(--bg-primary);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-loader {
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-loader.hidden {
    display: none;
}

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

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    width: 100%;
}

.btn-google:hover {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

/* Footer */
.auth-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

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

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

.terms-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.terms-text a {
    color: var(--text-secondary);
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Features Panel */
.auth-features {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--border-default);
}

.auth-features h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-list strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.feature-list p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Plan Comparison */
.plan-comparison {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.plan-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    position: relative;
}

.plan-card.premium {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(100, 255, 218, 0.02));
}

.plan-card.family {
    border-color: var(--accent-purple);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(168, 85, 247, 0.02));
}

.plan-card.family .plan-price {
    color: var(--accent-purple);
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: var(--space-md);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-glow));
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.plan-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-glow);
    margin-bottom: var(--space-md);
}

.plan-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.plan-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.plan-card li {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Dashboard link for logged in users */
.dashboard-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--accent-primary);
    text-decoration: none;
    margin-top: var(--space-lg);
}

.dashboard-link:hover {
    text-decoration: underline;
}

