/* Plain CSS, no framework, no design system -- four operator screens used occasionally by one
   person (lead's own instruction, #1441 login/list-screens follow-up). Readable HTML and enough
   CSS not to be ugly, nothing more. */

:root {
    color-scheme: light;
    --border: #d0d5dd;
    --text: #1a1f29;
    --muted: #5b6472;
    --bg: #f7f8fa;
    --surface: #ffffff;
    --accent: #2952cc;
    --danger: #b3261e;
    --danger-bg: #fdecea;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.5;
}

a { color: var(--accent); }

header.site {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

header.site .brand {
    font-weight: 600;
    letter-spacing: 0.01em;
}

header.site form { margin: 0; }

main {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.login-shell {
    max-width: 360px;
    margin: 4rem auto 0;
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.login-shell h1 {
    font-size: 1.25rem;
    margin: 0 0 1.25rem;
}

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

input[type="email"], input[type="password"] {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

button, input[type="submit"] {
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
}

button.link, .logout-button {
    background: none;
    border: none;
    color: var(--muted);
    padding: 0;
    text-decoration: underline;
    font-size: 0.9rem;
    cursor: pointer;
}

/* `#2476` -- show/hide password toggle. The field itself keeps its own full-width input styling
   above; this only positions the button over it and reserves room so the typed value never runs
   under the button's own text. */
.password-field {
    position: relative;
    margin-bottom: 1rem;
}

.password-field input {
    padding-right: 3.5rem;
    margin-bottom: 0;
}

.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 1rem;
    background: none;
    border: none;
    color: var(--muted);
    padding: 0 0.7rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.password-toggle:hover, .password-toggle:focus-visible {
    color: var(--text);
}

.error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    text-align: left;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

th {
    background: #eef1f5;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

tr:last-child td { border-bottom: none; }

.status-tag {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-active { background: #e4f6ea; color: #146c2e; }
.status-trial { background: #eaf1fe; color: var(--accent); }
.status-suspended { background: #fef3e6; color: #9a5b00; }
.status-archived { background: #eceef1; color: var(--muted); }

.pagination {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.pagination a { text-decoration: none; }
.pagination .disabled { color: #c2c8d1; pointer-events: none; }

.empty-state {
    padding: 2rem;
    text-align: center;
    color: var(--muted);
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 8px;
}

.back { display: inline-block; margin-bottom: 1rem; text-decoration: none; }
table.detail th { width: 16rem; text-align: left; vertical-align: top; }
.note { color: var(--muted); font-size: 13px; margin-left: 0.5rem; }

.notice { background: #eaf1fe; border: 1px solid #b9cdf7; border-radius: 6px; padding: 0.6rem 0.9rem; }
.actions { margin-top: 2rem; }
a.button { display: inline-block; padding: 0.5rem 0.9rem; border-radius: 6px; text-decoration: none; background: var(--accent); color: #fff; }
a.button.danger, button.danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.confirm-form { margin-top: 1.5rem; display: flex; align-items: center; gap: 1rem; }
