:root { --ink: #242126; --muted: #6d686b; --paper: #f5f3f1; --brand: #8a2635; --brand-dark: #711c29; --accent: #fff; --line: #e2dcde; --soft: #f2e8ea; --shadow: 0 18px 50px rgba(112, 28, 40, .12); }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.5 system-ui, sans-serif; }
a { color: var(--brand); text-underline-offset: 3px; }
.topbar { border-top: 9px solid var(--brand-dark); background: var(--brand); color: white; padding: 18px 4vw; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; gap: 12px; align-items: center; font-weight: 800; text-decoration: none; }
.topbar a { color: white; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: #f0dfe2; letter-spacing: .06em; }
.crest { border: 1px solid #f0dfe2; border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; font: 18px Georgia, serif; }
nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
main { max-width: 1120px; margin: auto; padding: 40px 24px; }
h1, h2 { font-family: Georgia, serif; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 20px; }
h1 { font-size: clamp(32px, 4vw, 52px); } h2 { font-size: 36px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; color: var(--brand); }
.auth-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: stretch; }
.intro { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(145deg, #711c29 0%, #8a2635 65%, #a93a4a 100%); color: white; border-radius: 22px; padding: 48px 36px; display: flex; flex-direction: column; justify-content: center; }
.intro .eyebrow { color: var(--accent); } .intro > p:last-child { color: #f0dfe2; }
.panel { background: white; border: 1px solid var(--line); border-radius: 22px; padding: 32px; }
.register-panel { max-width: 720px; margin: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin: 0 0 18px; min-width: 0; } label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 6px; }
input { font: inherit; } .field input { width: 100%; border: 1px solid var(--line); padding: 12px; border-radius: 12px; }
:focus-visible { outline: 3px solid #8a2635; outline-offset: 3px; }
.btn { display: inline-block; border: 0; border-radius: 12px; padding: 12px 18px; background: var(--brand); color: white; font-weight: 750; cursor: pointer; }
.accent { background: var(--accent); color: var(--brand); } .full { width: 100%; }
.hint, .form-footer { color: var(--muted); font-size: 14px; } .form-footer { text-align: center; margin-bottom: 0; }
.flash { padding: 14px 18px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 12px; background: #f7ecee; }
.flash.error { background: #f7e4e8; } .errors { color: var(--brand-dark); padding-left: 20px; font-size: 14px; }
dt { font-weight: 700; } dd { margin: 0 0 16px; overflow-wrap: anywhere; }
@media (max-width: 760px) { .auth-layout { grid-template-columns: 1fr; } .intro { padding: 30px; } }
@media (max-width: 520px) { main { padding: 24px 16px; } .panel { padding: 24px; } .form-grid { grid-template-columns: 1fr; } nav { gap: 12px; } }

/* Details shared with the corrected TFS portal reference. */
.intro::after { content: "TFS"; position: absolute; right: -15px; bottom: -55px; z-index: -1; font: 700 210px Georgia, serif; color: rgba(255, 255, 255, .045); pointer-events: none; }
nav > a { padding: 10px 13px; border-radius: 20px; text-decoration: none; font-weight: 650; color: #f6e9eb; }
nav > a:hover, nav > a[aria-current="page"] { background: var(--brand-dark); color: white; }
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(138, 38, 53, .10); }
.field input[type="file"]::file-selector-button { border: 0; border-radius: 8px; padding: 8px 12px; margin-right: 12px; background: var(--soft); color: var(--brand); font: inherit; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.panel { box-shadow: var(--shadow); }
