/* Styles for the server-rendered pages: sign-in, first-run setup, change password and errors. */
:root { font-family: "Segoe UI", Arial, sans-serif; color: #1b2b38; background: #f4f7f9; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 32px; background: #fff; border-bottom: 1px solid #e3eaee; }
.site-brand { color: #153a52; font-size: 18px; font-weight: 700; text-decoration: none; }
.site-account { display: flex; align-items: center; gap: 16px; font-size: 14px; color: #5f7382; }
.site-account form { margin: 0; }
.link-button { width: auto; padding: 0; border: 0; background: none; color: #1b526b; font-weight: 600; text-decoration: underline; }
.link-button:hover { background: none; color: #133d52; }
.site-main { padding: 40px 16px; }
.setup-card, .workspace-card { max-width: 640px; margin: 0 auto; padding: 32px; background: #fff; border: 1px solid #e3eaee; border-radius: 12px; box-shadow: 0 8px 24px #18394b14; }
.eyebrow { margin: 0 0 8px; color: #628091; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
h1 { margin: 0 0 8px; font-size: 28px; }
.intro { margin: 0 0 24px; color: #5f7382; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: 14px; font-weight: 600; }
input:not([type=checkbox]) { width: 100%; padding: 10px 12px; font: inherit; border: 1px solid #c9d6dd; border-radius: 8px; background: #fff; }
input:focus { outline: 2px solid #1b526b; outline-offset: 1px; }
button { width: 100%; padding: 12px 16px; font: inherit; font-weight: 700; color: #fff; background: #1b526b; border: 0; border-radius: 8px; cursor: pointer; }
button:hover { background: #133d52; }
.field-hint { color: #5f7382; font-size: 13px; }
.field-error, .text-danger { color: #b3261e; font-size: 13px; }
.validation-summary { color: #b3261e; font-size: 14px; }
.validation-summary ul { margin: 0 0 16px; padding-left: 20px; }
.validation-summary-valid { display: none; }
.remember-option { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 14px; }
.role-badge { display: inline-block; margin: 0; padding: 4px 10px; color: #245a72; font-size: 13px; font-weight: 600; background: #dfedf2; border-radius: 999px; }
.status-message { margin: 0 0 16px; padding: 12px 14px; font-weight: 600; border-radius: 8px; }
.status-success { color: #17603a; background: #e4f5ea; }
.status-failed { color: #b3261e; background: #fbe9e7; }
.button-link { display: block; padding: 12px 16px; font-weight: 700; color: #fff; text-align: center; text-decoration: none; background: #1b526b; border-radius: 8px; }
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .setup-card, .workspace-card { padding: 20px; }
}
