/* 2CRSI Edge - minimal starting theme.
   Clean white layout, thin borders, orange accent (brief §11).
   This is a functional first pass, not the final polished design system. */

:root {
    --edge-orange: #ff6b1a;
    --edge-orange-dark: #e0570d;
    --edge-text: #1f2328;
    --edge-muted: #6b7280;
    --edge-border: #e2e5e9;
    --edge-bg: #f7f8fa;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--edge-text);
    background: var(--edge-bg);
}

/* ---- Login page ---- */

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--edge-bg);
}

.login-card {
    background: #fff;
    border: 1px solid var(--edge-border);
    border-radius: 8px;
    padding: 2.5rem;
    width: 320px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.login-brand {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
}

.brand-2crsi {
    color: var(--edge-text);
}

.brand-edge {
    color: var(--edge-orange);
}

.login-field {
    margin-bottom: 1rem;
}

.login-field label {
    display: block;
    font-size: 0.85rem;
    color: var(--edge-muted);
    margin-bottom: 0.25rem;
}

.login-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--edge-border);
    border-radius: 6px;
    font-size: 1rem;
}

.login-input:focus {
    outline: none;
    border-color: var(--edge-orange);
}

.login-validation {
    color: #c0392b;
    font-size: 0.8rem;
}

.login-error {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #a4293a;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.login-button {
    width: 100%;
    background: var(--edge-orange);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.7rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
}

.login-button:hover {
    background: var(--edge-orange-dark);
}

/* ---- Signed-in shell ---- */

.edge-topbar {
    background: var(--edge-orange);
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edge-topbar .edge-user {
    font-size: 0.9rem;
}

.edge-topbar form {
    display: inline;
}

.edge-topbar button {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    border-radius: 6px;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
}

.edge-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.edge-card {
    background: #fff;
    border: 1px solid var(--edge-border);
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--edge-text);
    transition: box-shadow 0.15s;
}

.edge-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.edge-card-icon {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.edge-card h3 {
    margin: 0 0 0.4rem 0;
    font-size: 1.05rem;
}

.edge-card p {
    margin: 0;
    color: var(--edge-muted);
    font-size: 0.85rem;
}

.role-nav {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: #fff8f2;
    border-bottom: 1px solid var(--edge-border);
    font-size: 0.85rem;
}

.role-nav a {
    color: var(--edge-orange-dark);
    text-decoration: none;
    font-weight: 600;
}

.role-nav a:hover {
    text-decoration: underline;
}
