/* Student account pages: single-column forms first, supporting artwork on desktop. */
.auth-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; background: radial-gradient(ellipse at 100% 20%, #effbd850, transparent 55%), #fff; }
.auth-main { flex: 1; display: grid; padding-block: 34px 48px; }
.auth-form-column { min-width: 0; width: 100%; max-width: 460px; justify-self: center; }
.auth-eyebrow { font-size: 10px; color: #5b674b; margin-bottom: 16px; }
.auth-title { font-size: clamp(32px, 8.5vw, 43px); font-weight: 650; letter-spacing: -1.6px; line-height: 1.12; }
.auth-title > span { color: #69991a; }
.auth-description { font-size: 15px; line-height: 1.8; color: #6b7460; margin-top: 17px; max-width: 410px; }
.auth-preview { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; margin-top: 23px; border: 1px solid #e0e8d3; border-radius: 10px; background: #f3f8e9; font-size: 12px; line-height: 1.6; color: #566744; }
.auth-preview .status-dot { width: 5px; height: 5px; flex-basis: 5px; margin-top: 7px; box-shadow: none; }
.auth-form { margin-top: 27px; }
.form-fields { min-width: 0; display: grid; gap: 20px; border: 0; padding: 0; margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.form-field { min-width: 0; }
.form-field > label { display: block; font-size: 13px; font-weight: 600; color: #30382a; margin-bottom: 8px; }
.form-field input, .form-field select { display: block; width: 100%; min-width: 0; min-height: 54px; padding: 13px 15px; border: 1px solid #d9e1ce; border-radius: 9px; background: #ffffffd9; color: var(--ink); font-family: inherit; font-size: 16px; line-height: 1.5; transition: border-color .2s, box-shadow .2s; }
.form-field input::placeholder { color: #939d86; opacity: 1; }
.form-field input:focus, .form-field select:focus { border-color: #7a9f36; outline: 0; box-shadow: 0 0 0 3px #c4f94b45; }
.form-field input[aria-invalid="true"], .form-field select[aria-invalid="true"] { border-color: #a74332; }
.form-field input[aria-invalid="true"]:focus, .form-field select[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px #a743321a; }
.form-field select { padding-right: 42px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667655' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right 15px center; background-repeat: no-repeat; }
.form-field select:disabled { background-color: #f1f4ec; color: #7d8970; cursor: not-allowed; opacity: 1; }
.form-field input[type="date"] { min-inline-size: 0; }
.form-field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.password-input { position: relative; }
.password-input input { padding-right: 61px; }
.password-toggle { position: absolute; top: 3px; right: 3px; min-width: 48px; min-height: 48px; display: grid; place-items: center; padding: 10px; border: 0; border-radius: 7px; background: transparent; color: #667655; }
.password-toggle .icon { width: 21px; height: 21px; }
.field-hint { margin-top: 7px; color: #76816a; font-size: 12px; line-height: 1.6; }
.field-error { margin-top: 7px; color: #963c2e; font-size: 12px; line-height: 1.6; }
.form-row { display: grid; gap: 20px; min-width: 0; }
.auth-submit { width: 100%; justify-content: space-between; min-height: 54px; margin-top: 3px; font-size: 14px; }
.auth-submit:disabled { cursor: default; background: #777d6d; }
.form-feedback { margin-top: 20px; padding: 15px 17px; border: 1px solid #d4e4b6; border-radius: 10px; background: #f0f7e4; color: #495f31; font-size: 13px; line-height: 1.8; }
.form-feedback[data-kind="error"] { border-color: #e9cfc6; background: #fcf3ef; color: #963c2e; }
.auth-description strong { overflow-wrap: anywhere; font-weight: 600; color: #445634; }
.account-panel { margin-top: 28px; padding: 25px; border: 1px solid #e0e8d3; border-radius: 16px; background: #f6faef; }
.account-panel h2 { font-size: 28px; }
.account-panel > p { margin-top: 13px; overflow-wrap: anywhere; }
.account-panel .auth-preview .icon { width: 17px; height: 17px; }
.auth-form [disabled], .request-code:disabled { cursor: wait; }
.auth-links { display: grid; gap: 6px; margin-top: 21px; font-size: 13px; color: #737e66; }
.auth-links > a { min-height: 44px; display: inline-flex; align-items: center; width: fit-content; }
.auth-links p { line-height: 1.8; }
.auth-links a { color: #3c5720; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #bbcc9f; }
.auth-links p a { display: inline-flex; min-height: 44px; align-items: center; margin-left: 4px; font-weight: 650; }
.auth-back-link { display: flex; align-items: center; gap: 8px; min-height: 44px; width: fit-content; font-size: 12px; color: #5b6d49; margin-bottom: 18px; }
.auth-back-link .icon { width: 17px; height: 17px; }
.request-code { display: inline-flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 44px; border: 0; padding: 9px 0; margin-top: 4px; background: transparent; color: #426125; font-size: 12px; font-weight: 600; text-align: left; }
.request-code .icon { width: 17px; height: 17px; }
.code-feedback { padding: 12px 14px; margin-top: 5px; border: 1px solid #dce7cd; border-radius: 8px; background: #f5f9ee; color: #5f704c; font-size: 12px; line-height: 1.8; }
.code-field { padding-top: 20px; border-top: 1px solid var(--line); }
.form-field .verification-code { text-align: center; font-size: 23px; font-variant-numeric: tabular-nums; letter-spacing: .45em; padding-left: calc(15px + .45em); }
.auth-noscript { margin-top: 18px; font-size: 13px; color: #677756; }
.auth-story { display: none; }
.auth-footer { background: var(--ink); color: #a4ac99; padding-block: 23px; }
.auth-footer > .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 25px; font-size: 10px; }
.auth-footer .container > span:last-child { display: flex; align-items: center; gap: 11px; }

@media (min-width: 480px) {
    .auth-main { padding-block: 45px 60px; }
    .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .auth-title { font-size: 40px; }
}

@media (min-width: 1000px) {
    .auth-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 70px; padding-block: 65px 75px; }
    .auth-form-column { max-width: 450px; justify-self: end; }
    .auth-title { font-size: 42px; }
    .auth-story { display: flex; flex-direction: column; align-self: stretch; min-height: 660px; max-height: 800px; justify-content: center; position: relative; overflow: hidden; isolation: isolate; order: -1; border: 1px solid #e2e9d7; border-radius: 23px; background: radial-gradient(ellipse at 100% 62%, #c4f94b90, transparent 55%), #f1f5e9; padding: 36px; }
    .auth-story-grid { position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(#b5c09f20 1px, transparent 1px), linear-gradient(90deg, #b5c09f20 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(transparent, #000 35%, #000 80%, transparent); }
    .auth-story > .eyebrow { font-size: 8px; color: #65744f; }
    .auth-story h2 { font-size: clamp(34px, 3.5vw, 46px); letter-spacing: -1.8px; margin-top: 22px; line-height: 1.1; }
    .auth-story h2 span { color: #6b8050; }
    .auth-story > p { margin-top: 19px; font-size: 12px; line-height: 1.9; color: #718060; }
    .auth-story-card { width: 92%; max-width: 340px; border: 1px solid #fff; border-radius: 17px; padding: 25px; margin: 35px auto 27px; transform: rotate(-6deg); background: linear-gradient(130deg, #ffffffcc, #ffffff50); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 8px 14px 30px #42562310; }
    .story-card-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
    .story-card-top > span { font-size: 20px; font-weight: 750; letter-spacing: -.6px; line-height: .95; }
    .story-card-top img { display: block; width: 44px; height: 44px; padding: 7px; background: var(--brand-ink); }
    .auth-story-card > strong { display: block; margin-top: 25px; font-size: 29px; letter-spacing: -1px; line-height: 1.2; font-weight: 600; }
    .story-card-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 18px; }
    .story-card-bottom > span:first-child { font-size: 6px; letter-spacing: 1.2px; }
    .story-card-bottom > span:last-child { font-size: 31px; line-height: 1; }
    .auth-story-caption { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 8px; color: #72815e; }
    .auth-story-caption .icon { width: 19px; height: 19px; }
    .auth-footer > .container { font-size: 11px; }
}

@media (min-width: 1250px) {
    .auth-main { gap: 105px; grid-template-columns: 1.05fr 1fr; }
    .auth-form-column { justify-self: center; }
    .auth-story { padding: 48px; }
    .auth-story > .eyebrow { font-size: 9px; }
    .auth-story h2 { font-size: 47px; }
    .auth-story > p { font-size: 13px; }
    .auth-story-card { margin-block: 42px 32px; }
    .auth-story-caption { font-size: 9px; }
}

@media (hover: hover) {
    .password-toggle:hover { background: #eef4e4; }
    .auth-links a:hover, .request-code:hover, .auth-back-link:hover { color: #1f3810; }
}

@media (prefers-reduced-motion: reduce) {
    .form-field input, .form-field select { transition: none; }
}

.account-logout { width: 100%; min-height: 48px; margin-top: 12px; border: 1px solid #26351a; background: #fff; color: #26351a; }
.account-logout:hover { background: #eef8df; }
.account-logout:disabled { opacity: .65; cursor: wait; }
