/* Cosmic Design System Variables */
:root {
    /* Colors */
    --bg-deep: #0a0514;
    --bg-dark: #120b22;
    --panel-bg: rgba(25, 18, 45, 0.4);
    --panel-border: rgba(255, 255, 255, 0.08);
    
    --text-primary: #ffffff;
    --text-secondary: #a395b7;
    
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-glow: rgba(139, 92, 246, 0.5);
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Metrics */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --glass-blur: blur(16px);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-deep);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.15), transparent 25%);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem 0;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }
p { color: var(--text-secondary); line-height: 1.6; margin: 0 0 1rem 0; }

/* Utilities */
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-4 { gap: 1rem; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-8 { margin-top: 2rem; }

/* Cosmic UI Components */
.cosmic-panel {
    background: var(--panel-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cosmic-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.cosmic-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.cosmic-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.cosmic-button {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.cosmic-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--accent-glow);
    filter: brightness(1.1);
}

.cosmic-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #333;
    box-shadow: none;
}

.cosmic-link {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.cosmic-link:hover {
    color: var(--accent-purple);
    text-decoration: underline;
}

.error-text {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}
