/* St. Maria College shared shell (loaded after theme.css): navigation, login, page frames, common stationery
   components, toasts and motion states. Page styles build on these classes. */

/* The top bar, toasts, offline bar and motion states live in shell.css (shared with mail and affairs). */

/* ---------- page frame ---------- */
.college-page { max-width: var(--page-max); margin: 0 auto; padding: 26px 18px 40px; }
.page-head { color: var(--cream); margin: 6px 0 22px; }
.page-head .eyebrow { color: var(--p-frost); }
.page-head h1 { font-family: var(--zh); font-weight: 900; font-size: 32px; margin: 4px 0 2px; color: var(--paper); text-shadow: 2px 2px 0 color-mix(in srgb, var(--d-bark-black-10) 35%, transparent); }
.page-head p { margin: 0; color: var(--gold-soft); }
.college-foot { text-align: center; margin: 36px 0 18px; font-family: var(--label); font-size: 10.5px; letter-spacing: .2em; color: var(--gold-soft); opacity: .85; }
.college-foot a { color: var(--gold-soft); }

/* ---------- stationery components ---------- */
.paper { position: relative; background: var(--paper); color: var(--ink); padding: 22px 24px; border-top: 6px solid var(--red); box-shadow: var(--shadow-paper); }
.paper.lined { background-image: repeating-linear-gradient(0deg, transparent 0 27px, color-mix(in srgb, var(--p-navy) 7%, transparent) 27px 28px); }
.paper.green { border-top-color: var(--green); } .paper.gold { border-top-color: var(--gold); } .paper.navy { border-top-color: var(--navy); }
.paper h2 { margin-top: 0; }
.tilt-l { transform: rotate(-.6deg); } .tilt-r { transform: rotate(.5deg); }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 3px; background: var(--cream); color: var(--brown); white-space: nowrap; }
.tag.red { background: var(--red); color: var(--cream); } .tag.green { background: var(--green); color: var(--cream); }
.tag.gold { background: var(--gold-soft); color: var(--brown); } .tag.navy { background: var(--navy); color: var(--cream); }
.tag.muted { background: var(--d-frost-paper-20); color: var(--muted); }
.demo-flag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--red-deep); background: var(--gold-soft); border: 1px dashed var(--red); padding: 0 6px; border-radius: 3px; }
.empty-note { text-align: center; color: var(--muted); padding: 30px 12px; }
.empty-note img { width: 80px; display: block; margin: 0 auto 8px; }
.empty-note b { display: block; font-family: var(--zh); color: var(--green-deep); font-size: 16px; margin-bottom: 4px; }
.loading-note { color: var(--muted); padding: 24px; text-align: center; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.small-btn { padding: 5px 12px; font-size: 13px; box-shadow: none; }
.link-btn { background: none; border: 0; box-shadow: none; color: var(--red); padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover:not(:disabled) { background: none; color: var(--red-deep); }
.rich { line-height: 1.85; overflow-wrap: anywhere; }
.rich img { max-width: 100%; height: auto; }
.rich a { color: var(--red); }

/* ---------- login ---------- */
.login-wrap { display: grid; place-items: center; padding: 40px 0; overflow-x: clip; } /* the goose leans past the card edge; never past the screen */
.login-card { width: min(420px, 100%); padding: 34px 32px 24px; transform: rotate(-.6deg); background-image: repeating-linear-gradient(0deg, transparent 0 27px, color-mix(in srgb, var(--p-navy) 8%, transparent) 27px 28px); }
.pin::before { content: ""; position: absolute; top: -14px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--d-ember-white-60), var(--red) 60%, var(--red-deep)); box-shadow: 1px 3px 3px color-mix(in srgb, var(--d-bark-black-10) 35%, transparent); }
.login-card .stamp { position: absolute; right: 20px; top: 22px; transform: rotate(8deg); border: 2px solid var(--red); color: var(--red); padding: 2px 8px; font-family: var(--label); font-size: 10px; letter-spacing: .14em; opacity: .65; }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.login-brand svg { width: 44px; height: 54px; transform: rotate(-4deg); }
.login-brand b { display: block; font-family: var(--display); font-size: 24px; color: var(--red); line-height: 1; }
.login-brand small { display: block; font-family: var(--zh); font-weight: 700; font-size: 12px; letter-spacing: .5em; color: var(--green); margin-top: 6px; }
.login-card h1 { font-size: 22px; margin: 0 0 2px; }
.login-card .lead { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.login-card .field { display: grid; gap: 6px; margin-bottom: 12px; }
.login-card .field span { font-size: 13px; font-weight: 700; color: var(--brown); }
.primary-wide { width: 100%; height: 42px; margin-top: 6px; }
.login-error { color: var(--red); font-size: 13px; min-height: 18px; margin: 8px 0 0; }
.login-foot { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12.5px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted); }

@media (max-width: 760px) {
  .college-page { padding: 22px 12px 34px; overflow-x: clip; } /* a card landing at a slant must not widen the phone page mid-animation */
  .page-head h1 { font-size: 26px; }
  .paper { padding: 18px 16px; }
  .login-card { padding: 30px 20px 22px; transform: none; }
}

/* Student-pass login card: back links, and the goose (skin by date, elements.js; one crop box for every skin). */
.login-back { margin-top: 10px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.login-goose { position: absolute; right: -86px; bottom: -42px; width: 116px; transform: rotate(6deg); pointer-events: none; }
.login-goose img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .login-goose { right: 2px; bottom: -84px; width: 90px; }
  .login-card .stamp { top: 12px; right: 12px; }
  .login-brand { margin-top: 18px; }
  .login-brand b { font-size: 21px; }
}

/* Calm pass (整洁版): content cards lean at most ±var(--tilt-max) and read at --card-text. */
.tilt-l { transform: rotate(calc(var(--tilt-max) * -1)); } .tilt-r { transform: rotate(var(--tilt-max)); }
.login-card { transform: rotate(calc(var(--tilt-max) * -1)); }
.paper p, .paper li, .empty-note { font-size: var(--card-text); }
.tag { background: var(--chip); }

/* ux/04: 邮箱名 hint under the login field */
.field-hint { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
