:root {
  --brand: #F18230;
  --background: #FFFFFF;
  --background-secondary: #F2F2F2;
  --text-main: #333333;
  --text-secondary: #666666;
  --muted: #807E7E;
  --status-accepted: #83BB6B;
  --status-correction: #C76450;
  --status-empty: #C750AB;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text-main);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
.site-header { padding: 27px 5%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand-logo { display: block; width: 180px; height: 70px; object-fit: contain; }
.header-label { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 13px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--status-accepted); flex-shrink: 0; }
.status-dot[data-status="correction"] { background: var(--status-correction); }
.status-dot[data-status="empty"] { background: var(--status-empty); }
.login-card {
  width: calc(100% - 36px);
  max-width: 438px;
  background: var(--background);
  margin: 55px auto 64px;
  padding: 38px 38px 0;
  border: 1px solid var(--background-secondary);
  border-radius: 18px;
  box-shadow: 0 12px 42px #33333308;
}
.lock-icon { width: 48px; height: 48px; display: grid; place-items: center; background: var(--background-secondary); border: 1px solid var(--background-secondary); border-radius: 14px; margin-bottom: 25px; }
.lock-icon span { position: relative; width: 18px; height: 15px; border: 2px solid var(--brand); border-radius: 4px; margin-top: 7px; }
.lock-icon span:before { content: ""; position: absolute; width: 10px; height: 9px; border: 2px solid var(--brand); border-bottom: 0; border-radius: 8px 8px 0 0; left: 2px; top: -10px; }
.lock-icon span:after { content: ""; position: absolute; width: 3px; height: 5px; background: var(--brand); border-radius: 2px; top: 3px; left: 6px; }
.eyebrow { color: var(--text-secondary); font-size: 10px; font-weight: 750; letter-spacing: 1.6px; margin: 0 0 10px; }
h1 { font-size: 31px; line-height: 1.2; letter-spacing: -1px; font-weight: 650; margin: 0 0 10px; }
.intro { color: var(--text-secondary); margin: 0; }
.login-form { margin-top: 29px; }
.field { margin-bottom: 20px; }
label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 7px; }
input { width: 100%; font: inherit; color: var(--text-main); border: 1px solid var(--muted); border-radius: 8px; padding: 12px 13px; background: var(--background); min-height: 47px; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: var(--text-secondary); }
input:hover { border-color: var(--text-main); }
input:focus-visible { border-color: var(--text-main); outline: 2px solid var(--text-main); outline-offset: 2px; box-shadow: 0 0 0 5px var(--background-secondary); }
button { font: inherit; cursor: pointer; border: 0; border-radius: 8px; padding: 12px 17px; color: var(--text-main); background: var(--brand); font-weight: 650; min-height: 47px; }
button:hover { box-shadow: inset 0 0 0 2px var(--text-main); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--text-main); outline-offset: 4px; }
.primary-button { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 26px; text-align: left; }
.primary-button span { font-size: 20px; line-height: 1; }
.account-help { color: var(--text-secondary); font-size: 12px; text-align: center; line-height: 1.8; margin: 23px 0 28px; }
.account-help strong { font-weight: 550; color: var(--text-main); }
.access-note { border-top: 1px solid var(--background-secondary); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; color: var(--text-secondary); padding: 17px 0; }
.site-footer { margin-top: auto; padding: 20px 5% 27px; display: flex; gap: 15px; justify-content: space-between; color: var(--text-secondary); font-size: 11px; }
.notice, .form-errors { padding: 12px; border: 1px solid var(--muted); border-radius: 8px; font-size: 13px; margin-bottom: 20px; background: var(--background-secondary); color: var(--text-main); }
.form-errors { border-color: var(--status-correction); border-left-width: 4px; }
.errorlist { list-style: none; margin: 0 0 8px; padding: 0; color: var(--text-main); font-size: 13px; }
[aria-invalid="true"] { border: 2px solid var(--status-correction); }
.content-card { max-width: 760px; width: calc(100% - 36px); padding: 36px; margin: 48px auto; background: var(--background); border: 1px solid var(--background-secondary); border-radius: 18px; }
.content-card form { margin: 16px 0; }
.content-card h2 { font-size: 18px; margin-top: 30px; }
.skip-link { position: absolute; left: 20px; top: -80px; background: var(--background); color: var(--text-main); padding: 10px; z-index: 2; }
.skip-link:focus { top: 12px; }
@media (max-width: 520px) {
  .site-header { padding: 22px; }
  .brand-logo { width: 150px; height: auto; }
  .header-label { font-size: 11px; }
  .login-card { margin: 25px auto 40px; padding: 29px 25px 0; border-radius: 14px; }
  h1 { font-size: 29px; }
  .site-footer { padding: 18px 22px 24px; }
  .content-card { padding: 25px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.login-card-minimal { padding-bottom: 38px; }
.login-card-minimal h1 { font-size: 25px; line-height: 1.4; letter-spacing: -.5px; text-wrap: balance; }
@media (max-width: 520px) {
  .login-card-minimal { padding-bottom: 29px; }
  .login-card-minimal h1 { font-size: 23px; }
}
