@import url("/static/css/console.css");
@import url("/static/css/auth.css");

:root {
    /* Color Palette matching deep premium tech theme */
    --bg-base: #030712; /* Deepest blue/black */
    --bg-surface: #0b1120;
    --bg-card: rgba(17, 24, 39, 0.6); /* Translucent for glass */
    --bg-card-hover: rgba(31, 41, 55, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-hover: rgba(255, 255, 255, 0.25);
    
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --text-disabled: #4b5563;
    
    --accent-primary: #ec4899; /* Pink */
    --accent-secondary: #8b5cf6; /* Purple */
    --accent-blue: #3b82f6; /* Blue */
    --accent-cyan: #06b6d4; /* Cyan */
    
    --success-color: #10b981;
    --success-bg: rgba(16, 185, 129, 0.15);
    
    /* Legacy Variables adapted for deep mode */
    --brand-cyan: #06b6d4;
    --brand-blue: #3b82f6;
    --brand-pink: #ec4899;
    --brand-ink: #ffffff;
    --brand-muted: #9ca3af;
    --brand-surface: rgba(17, 24, 39, 0.7);
    --brand-surface-strong: #030712;
    --brand-surface-soft: rgba(255,255,255,0.03);
    --brand-border: rgba(255, 255, 255, 0.1);
    --brand-border-strong: rgba(255, 255, 255, 0.2);
    --brand-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
    --brand-shadow-soft: 0 10px 20px -5px rgba(0,0,0,0.3);
    --brand-gradient: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue), var(--accent-secondary));
    --brand-gradient-soft: var(--bg-base);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
    
    --primary: var(--accent-blue);
    --primary-hover: #60a5fa;
    --primary-soft: rgba(59, 130, 246, 0.2);
    --accent: var(--accent-secondary);
    --accent-soft: rgba(139, 92, 246, 0.2);
    --bg-main: var(--bg-base);
    --text-primary: var(--text-main);
    --text-secondary: var(--text-muted);
    --text-dim: var(--text-disabled);
    --border-base: var(--border-color);
    --border-focus: var(--accent-cyan);
    --success: var(--success-color);
    --success-soft: var(--success-bg);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.15);
    --info: #3b82f6;
    --info-soft: rgba(59, 130, 246, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Inter', "Noto Sans SC", -apple-system, sans-serif;
    color: var(--text-main);
    background: var(--bg-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body, button, input, select, textarea {
    font-family: 'Inter', "Noto Sans SC", -apple-system, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

/* Base Inputs - Higher Contrast & Depth */
.form-input, .form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.05);
}

.form-input::placeholder, .form-control::placeholder {
    color: rgba(255,255,255,0.3);
    transition: color 0.3s ease;
}

.form-input:hover, .form-control:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 4px 8px rgba(0,0,0,0.1);
}

.form-input:focus, .form-control:focus {
    border-color: var(--accent-cyan);
    background: rgba(0, 0, 0, 0.65);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 0 0 4px rgba(6, 182, 212, 0.2), 0 0 15px rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
}

.form-input:focus::placeholder, .form-control:focus::placeholder {
    color: rgba(255,255,255,0.5);
}

/* Form Group Global Transitions */
.form-group {
    position: relative;
    /* Spacing handled mostly in user.css/console.css, keep it clean globally */
}

.form-group label {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
    transform-origin: left center;
}

.form-group:focus-within label {
    color: #ffffff;
    transform: translateX(4px) scale(1.02);
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

/* Background Gradients - Much Brighter & Vibrant for Impact */
.brand-haze,
.brand-haze-secondary,
.brand-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -3;
}

.brand-haze {
    background:
        radial-gradient(circle at 15% 10%, rgba(6, 182, 212, 0.35), transparent 35%),
        radial-gradient(circle at 85% 20%, rgba(139, 92, 246, 0.3), transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.25), transparent 45%);
    filter: blur(80px);
}

.brand-haze-secondary {
    z-index: -2;
    background: none;
}

.brand-grain {
    z-index: -1;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.28'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* Chips - Neon glow */
.eyebrow-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 4px 12px;
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: var(--radius-pill);
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.eyebrow-chip-soft {
    border-color: rgba(255,255,255,0.15);
    color: #e5e7eb;
    background: rgba(255,255,255,0.05);
    box-shadow: none;
}

/* Buttons - Premium Gradients & Shadows */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-secondary), var(--accent-primary));
    background-size: 200% auto;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    animation: gradientShift 5s ease infinite;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6), inset 0 1px 0 rgba(255,255,255,0.3);
    transform: translateY(-2px);
    background-position: right center;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-secondary {
    color: #ffffff;
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-danger {
    color: white;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-success {
    color: white;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-block {
    width: 100%;
}

/* Footer */
.footer {
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: auto;
}

.footer-link {
    color: var(--accent-cyan);
    font-weight: 600;
}

.footer-link:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* Toast */
.toast {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.4rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(16px);
    color: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
    font-weight: 500;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.small { font-size: 0.85rem; }

/* Console Shell Layout */
.console-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 88px 1.5rem 1.5rem; 
    min-height: 100vh;
}

@media (max-width: 900px) {
    .console-shell {
        grid-template-columns: 1fr;
        padding: 88px 1rem 1rem;
    }
}

