.authentication-page {
  color: #17233c;
  background: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

.authentication-page *, .authentication-page *::before, .authentication-page *::after { box-sizing: border-box; }
.authentication-page ::selection { background: #c7d2fe; color: #17233c; }
.authentication-page :focus-visible { outline: 2px solid #4f46e5; outline-offset: 4px; }
.authentication-page a { text-underline-offset: .25em; }
.authentication-header {
  width: min(100% - 48px, 1120px);
  margin-inline: auto;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 24px;
  border-bottom: 1px solid #e2e8f0;
}
.authentication-brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #17233c; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; }
.authentication-brand svg { width: 36px; height: 40px; color: #4338ca; flex-shrink: 0; }
.authentication-languages { display: flex; gap: 8px; }
.authentication-languages button { min-height: 44px; padding: 8px 12px; color: #475569; cursor: pointer; border-radius: 12px; }
.authentication-languages button:hover { background: #e0e7ff; }
.authentication-languages button[aria-current="true"] { color: #4338ca; font-weight: 600; text-decoration: underline; text-underline-offset: 6px; }
.authentication-shell { width: min(100% - 40px, 480px); margin: 56px auto; }
.authentication-panel { padding: 32px; border-radius: 16px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1); overflow-wrap: anywhere; }
.authentication-panel h1 { margin: 0 0 24px; font-size: 30px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; }
.authentication-panel h2 { font-weight: 600; }
.authentication-panel > p { margin-block: 0 24px; color: #475569; }
.authentication-panel .authentication-intro { margin-top: -12px; }
.authentication-form { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
.authentication-field { display: flex; flex-direction: column; gap: 8px; }
.authentication-form label, .authentication-form legend { font-size: 14px; font-weight: 600; }
.authentication-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]) {
  width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid #64748b; border-radius: 12px;
  background: #fff; color: #17233c; font-size: 16px; caret-color: #4338ca;
}
.authentication-form input:not([type="submit"]):focus { border-color: #4f46e5; }
.authentication-form input[type="submit"] {
  min-height: 48px; width: 100%; padding: 12px 16px; border: 0; border-radius: 12px;
  color: #fff; background: #4338ca; font-size: 16px; font-weight: 600; cursor: pointer;
  white-space: normal;
}
.authentication-form input[type="submit"]:hover { background: #3730a3; }
.authentication-form input[type="submit"]:disabled { background: #64748b; cursor: wait; }
.authentication-choice { display: flex; align-items: flex-start; gap: 12px; }
.authentication-choice input:not([type="hidden"]) { width: 20px; height: 20px; flex-shrink: 0; margin-top: 12px; accent-color: #4338ca; }
.authentication-choice label { min-height: 44px; display: flex; align-items: center; padding-block: 10px; cursor: pointer; }
.authentication-form fieldset { min-width: 0; }
.authentication-form legend { margin-bottom: 8px; }
.authentication-hint { color: #475569; font-size: 14px; margin: 0; }
.authentication-links { display: flex; flex-direction: column; align-items: flex-start; border-top: 1px solid #e2e8f0; margin-top: 28px; padding-top: 16px; }
.authentication-links a, .authentication-panel > a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; color: #4338ca; font-size: 14px; font-weight: 600; text-decoration: underline; }
.authentication-links a:hover, .authentication-panel > a:hover { color: #3730a3; }
.authentication-feedback { padding: 16px; margin-bottom: 24px; border-radius: 12px; overflow-wrap: anywhere; }
.authentication-feedback[role="alert"], .authentication-errors { background: #fff1f2; color: #881337; }
.authentication-feedback[role="status"] { background: #ecfdf5; color: #065f46; }
.authentication-errors { padding: 16px; border-radius: 12px; }
.authentication-feedback ul { padding-left: 20px; list-style: disc; }
.authentication-context { width: min(100% - 40px, 576px); }
.authentication-context-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.authentication-context-header nav { margin: 0; }
@media (max-width: 480px) {
  .authentication-header { width: calc(100% - 40px); padding-block: 20px; gap: 20px; }
  .authentication-languages { margin-left: auto; }
  .authentication-shell { margin-block: 32px; }
  .authentication-panel { padding: 24px 20px; }
  .authentication-panel h1 { font-size: 26px; }
}
