@font-face {
  font-family: 'Sohne';
  src: local('Söhne Buch'), local('Sohne Buch'), local('Soehne-Buch'), local('Sohne-Buch');
  font-weight: 400;
}
@font-face {
  font-family: 'Sohne';
  src: local('Söhne Halbfett'), local('Sohne Halbfett'), local('Soehne-Halbfett'), local('Sohne-Halbfett');
  font-weight: 600;
}
@font-face {
  font-family: 'Ivar Headline';
  src: local('Ivar Headline Regular'), local('IvarHeadline-Regular'), local('Ivar Headline');
  font-weight: 400;
}
:root {
  --school-sans: 'Sohne', Helvetica, Arial, sans-serif;
  --school-serif: 'Ivar Headline', Georgia, serif;
}
:root {
  color-scheme: dark;
  --ink: #0c0d0e;
  --paper: #f7f5f0;
  --muted: #bfbdba;
  --focus: #f1d393;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 16px/1.45 var(--school-sans);
  -webkit-font-smoothing: antialiased;
}
button,input { font: inherit; }
button { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:focus-visible,button:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.access {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(30px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
           max(30px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.access-inner { width: min(100%, 464px); min-width: 0; }
.access-card {
  padding: clamp(27px, 5.2vw, 48px);
  border: 1px solid #353638;
  border-top-color: #454548;
  border-radius: 18px;
  background: linear-gradient(145deg, #202122 0%, #191a1c 58%, #171819 100%);
  box-shadow: 0 2px 4px #0005, 7px 20px 40px -16px #000b;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); }
.wordmark img { display: block; width: 32px; height: 36px; }
.wordmark span { font: 400 18px/1.02 var(--school-serif); letter-spacing: -.025em; }
.intro { margin: 39px 0 29px; }
h1 { margin: 0; font: 400 clamp(38px, 7vw, 52px)/1.05 var(--school-serif); letter-spacing: -.04em; }
h1:focus { outline: none; }
.intro p { margin: 10px 0 0; color: #cccac7; font-size: 16px; overflow-wrap: anywhere; }
label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #686869;
  border-radius: 7px;
  color: var(--paper);
  background: #111214;
  box-shadow: inset 0 1px 3px #0004;
  font-size: 16px;
}
input:focus { outline: 2px solid var(--focus); outline-offset: 2px; }
input[aria-invalid=true] { border-color: #e3a698; }
.password-box { position: relative; }
.password-box input { padding-right: 70px; }
#show-password {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  min-width: 55px; min-height: 44px; border-radius: 4px;
  color: #e2dfd9; font-size: 13px; font-weight: 600;
}
.hint,.error-box { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.error-box { color: #f3b6a8; }
.error-box p { margin: 0; }
#restore { min-height: 38px; text-decoration: underline; text-underline-offset: 3px; color: var(--paper); font-size: 13px; }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; }
.primary,.quiet { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; }
.primary { padding: 12px 26px; min-width: 106px; border-radius: 7px; font-size: 15px; font-weight: 600; }
.quiet,.enroll-link a { font-size: 14px; font-weight: 600; }
.quiet:hover,.enroll-link a:hover,#show-password:hover { text-decoration: underline; text-underline-offset: 3px; }
.enroll-link { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.enroll-link a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 3px; color: var(--paper); }
.fallback { margin-top: 16px; }
@media(max-width: 375px) {
  .access-card { padding: 26px 22px; }
  .intro { margin: 30px 0 24px; }
}
@media(forced-colors: active) {
  .access-card,.primary { border: 1px solid ButtonText; }
}
.gold-action,
.gold-action:hover,
.worksheet .gold-action,
.video-tabs .gold-action {
  color: #221602;
  border: 0;
  background: linear-gradient(105deg, #d4a64f, #efd089 47%, #daae57);
  box-shadow: none;
  text-shadow: none;
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  font-weight: 600;
}
.gold-action:active {
  translate: 0 1px;
}
.gold-action {
  position: relative;
}
.gold-action::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(108deg, transparent 40%, #fff1c74d 47%,
    #fff7dbeb 50%, #fff1c74d 53%, transparent 60%);
  transform: translateX(-100%);
  animation: gold-pass 2.4s linear infinite;
}
@keyframes gold-pass {
  0% { transform: translateX(-100%); }
  14%, 100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .gold-action::before { animation: none; }
}
