/* thinkfox Portal — Basis-Styles */

:root {
    --tfx-violet: #5B4EC7;
    --tfx-violet-dark: #4A3FB0;
    --tfx-violet-light: #EFEDFA;
    --tfx-text: #1A1A2E;
    --tfx-text-muted: #6B6B7B;
    --tfx-bg: #F7F7FB;
    --tfx-surface: #FFFFFF;
    --tfx-border: #E4E4EC;
    --tfx-danger: #C7264E;
    --tfx-success: #2E8B57;
    --tfx-radius: 8px;
    --tfx-shadow: 0 1px 2px rgba(20, 20, 40, 0.04), 0 4px 12px rgba(20, 20, 40, 0.04);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--tfx-text);
    background: var(--tfx-bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--tfx-violet); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Login-Layout */
.tfx-login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.tfx-login-card {
    width: 100%;
    max-width: 420px;
    background: var(--tfx-surface);
    border: 1px solid var(--tfx-border);
    border-radius: var(--tfx-radius);
    box-shadow: var(--tfx-shadow);
    padding: 40px 32px;
}
.tfx-login-card h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}
.tfx-login-card .tfx-subtitle {
    color: var(--tfx-text-muted);
    margin: 0 0 28px;
    font-size: 14px;
}
.tfx-brand {
    color: var(--tfx-violet);
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: block;
}

/* Forms */
.tfx-field { margin-bottom: 18px; }
.tfx-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}
.tfx-field input[type=email],
.tfx-field input[type=password],
.tfx-field input[type=text] {
    width: 100%;
    padding: 11px 13px;
    font-size: 15px;
    border: 1px solid var(--tfx-border);
    border-radius: var(--tfx-radius);
    background: var(--tfx-surface);
    font-family: inherit;
    color: var(--tfx-text);
    transition: border-color 120ms, box-shadow 120ms;
}
.tfx-field input:focus {
    outline: none;
    border-color: var(--tfx-violet);
    box-shadow: 0 0 0 3px rgba(91, 78, 199, 0.15);
}

.tfx-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 18px;
    background: var(--tfx-violet);
    color: #fff;
    border: none;
    border-radius: var(--tfx-radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 120ms;
}
.tfx-btn:hover { background: var(--tfx-violet-dark); }

.tfx-alert {
    padding: 10px 14px;
    border-radius: var(--tfx-radius);
    font-size: 14px;
    margin-bottom: 18px;
}
.tfx-alert--error {
    background: #FBE9EE;
    color: var(--tfx-danger);
    border: 1px solid #F0C5D0;
}
.tfx-alert--info {
    background: var(--tfx-violet-light);
    color: var(--tfx-violet-dark);
    border: 1px solid #D6D1F0;
}

/* Portal-Layout */
.tfx-app {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}
.tfx-sidebar {
    background: var(--tfx-surface);
    border-right: 1px solid var(--tfx-border);
    padding: 24px 16px;
}
.tfx-sidebar nav { display: flex; flex-direction: column; gap: 2px; margin-top: 24px; }
.tfx-sidebar nav a {
    padding: 9px 12px;
    border-radius: 6px;
    color: var(--tfx-text);
    font-size: 14px;
}
.tfx-sidebar nav a:hover { background: var(--tfx-violet-light); text-decoration: none; }
.tfx-sidebar nav a.active { background: var(--tfx-violet-light); color: var(--tfx-violet-dark); font-weight: 500; }

.tfx-main { padding: 32px 40px; }
.tfx-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.tfx-topbar h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.tfx-user { font-size: 14px; color: var(--tfx-text-muted); }
.tfx-user a { margin-left: 12px; }
