@font-face {
  font-family: 'Montserrat';
  src: url('assets/fonts/montserrat-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  font-family: 'Montserrat', sans-serif;
  color: #3a3560;
  background: #f4f1fb;
  font-synthesis: none;
  --ink: #2f2a6a;
  --green: #d70984;
  --coral: #7b3fe0;
  --mint: #fbeff6;
  --lime: #e8e0fa;
  --gradient: linear-gradient(118deg, #d70984 0%, #7b3fe0 100%);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-underline-offset: 4px; }
::selection { color: var(--ink); background: var(--lime); }
.access-layout { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); }
.access-story {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 50px;
  min-height: 100svh;
  padding: 42px clamp(36px, 5.7vw, 88px) 54px;
  background: var(--gradient);
  color: #fff;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  text-decoration: none;
  font-size: 31px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.035em;
}
.wordmark img { display: block; width: 42px; height: 42px; }
.story-copy { align-self: center; padding-top: 22px; }
.story-copy h1 {
  margin: 0 0 24px;
  font-size: clamp(48px, 5.2vw, 76px);
  font-weight: 530;
  line-height: 1.04;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.story-copy p { max-width: 390px; margin: 0; font-size: 18px; line-height: 1.65; color: rgba(255,255,255,.92); }
.prepare-note { max-width: 472px; padding: 22px 25px 18px; background: #fff; color: var(--ink); border-radius: 12px; }
.note-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.note-heading h2 { font-size: 17px; line-height: 1.3; font-weight: 600; margin: 0; letter-spacing: -.015em; }
.note-fold { width: 17px; height: 20px; border: 1.5px solid var(--green); border-radius: 2px; position: relative; flex: none; }
.note-fold:after { content: ''; position: absolute; width: 7px; height: 1.5px; background: var(--green); top: 7px; left: 3.5px; box-shadow: 0 4px 0 var(--green); }
.example-question { font-size: 15px; line-height: 1.5; margin: 0; padding: 11px 0; border-top: 1px solid #ead9e6; }
.example-caption { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: #6b6585; }
.access-form {
  min-height: 100svh;
  border-left: 1px solid #ddd8ec;
  padding: 100px clamp(30px, 5vw, 78px) 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  background: #fff;
}
.login-card { width: min(100%, 380px); margin: auto 0; }
.login-card h2 { font-size: clamp(29px, 3vw, 37px); line-height: 1.15; font-weight: 550; letter-spacing: -.035em; margin: 0 0 14px; text-wrap: balance; }
.login-intro { font-size: 16px; line-height: 1.6; color: #6b6585; margin: 0 0 30px; max-width: 300px; }
.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid #d2cbe6;
  border-radius: 8px;
  background: #fff;
  font: 550 15px/1.5 'Instrument Sans', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.google-button:hover { border-color: #b5076e; background: #f4f1fb; }
.google-button[aria-disabled=true] { pointer-events: none; opacity: .5; }
.google-button:focus-visible, .wordmark:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }
.google-button svg { flex: none; }
#google-credential-button { min-height: 44px; }
.password-form { display: grid; gap: 10px; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: #6b6585; font-size: 13px; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: #ddd8ec; }
.password-form label { font-size: 14px; font-weight: 600; color: var(--ink); }
.password-form input { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid #d2cbe6; border-radius: 10px; background: #fff; color: var(--ink); font: 500 17px/1.4 'Montserrat', sans-serif; }
.password-form input:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-color: var(--green); }
.password-form input[aria-invalid=true] { border-color: #a63526; }
.primary-button { min-height: 52px; margin-top: 6px; border: 0; border-radius: 10px; background: var(--green); color: #fff; font: 650 16px/1.4 'Montserrat', sans-serif; cursor: pointer; transition: background .2s ease; }
.primary-button:hover { background: #b5076e; }
.primary-button:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.primary-button[disabled] { opacity: .6; cursor: progress; }
.login-status { font-size: 13px; line-height: 1.6; min-height: 26px; color: #a63526; margin: 14px 0 26px; }
.login-status:empty { min-height: 0; margin: 0 0 26px; }
.access-note { display: flex; align-items: flex-start; gap: 11px; border-top: 1px solid #ddd8ec; padding-top: 23px; color: #6b6585; }
.access-note svg { flex: none; margin-top: 2px; }
.access-note p { margin: 0; font-size: 12px; line-height: 1.8; }
.fiction-note { max-width: 340px; margin: 56px 0 0; text-align: left; color: #6b6585; font-size: 12px; line-height: 1.7; }
[hidden] { display: none !important; }
@media (min-width: 701px) {
  .prepare-note { animation: settle-in .7s cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes settle-in { from { clip-path: inset(0 0 12% 0); } to { clip-path: inset(0); } }
@media (max-width: 1000px) and (min-width: 701px) {
  .access-story { padding: 36px 34px 40px; gap: 35px; }
  .access-form { padding: 100px 34px 36px; }
  .story-copy h1 { font-size: 54px; }
  .story-copy p { font-size: 16px; }
  .prepare-note { padding: 20px; }
}
@media (max-width: 700px) {
  .access-layout { display: block; }
  .access-story { min-height: 0; padding: 27px 26px 30px; gap: 0; }
  .wordmark { font-size: 27px; gap: 8px; }
  .wordmark img { width: 35px; height: 35px; }
  .story-copy { padding: 42px 0 0; }
  .story-copy h1 { font-size: clamp(43px, 11.5vw, 57px); line-height: 1.04; margin-bottom: 18px; }
  .story-copy p { font-size: 16px; line-height: 1.6; max-width: 360px; }
  .prepare-note { display: none; }
  .access-form { min-height: 0; border: 0; padding: 36px 26px 28px; margin-top: 34px; background: #fff; border-top: 1px solid #ddd8ec; align-items: flex-start; }
  .login-card { width: 100%; max-width: 380px; margin: 0 auto; }
  .login-card h2 { font-size: 29px; margin-bottom: 12px; }
  .login-intro { font-size: 15px; max-width: 310px; margin-bottom: 24px; }
  .login-status { margin-bottom: 18px; }
  .login-status:empty { margin-bottom: 22px; }
  .access-note { padding-top: 18px; }
  .fiction-note { width: 100%; max-width: 380px; margin: 36px auto 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; }
}
