@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --bg-main: #0b0d12;
    --bg-panel: #141a29;
    --bg-elevated: #1e2638;
    --primary: #06b6d4;
    --primary-glow: rgba(6, 182, 212, 0.15);
    --border: #2a344a;
    --border-primary: rgba(6, 182, 212, 0.4);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --danger: #ef4444;
    --success: #10b981;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* Noise overlay decommissioned for clinical clarity */
.noise-overlay {
    display: none;
}

/* Authentication Page */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-wrapper {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
}

.auth-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 32px 128px rgba(0,0,0,0.6);
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.logo span {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 8px;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    font-size: 1.2rem;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.input-group {
    text-align: left;
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-group input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-main);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

.error-msg {
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.auth-footer {
    margin-top: 32px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

/* Module Selector Dash */
.dash-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.module-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.module-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.module-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.8rem;
}

.module-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.module-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .auth-card {
        padding: 32px 24px;
    }
    
    .dash-header {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}
