/* Paperlogy v1.001 — SIL Open Font License 1.1. */
@font-face { font-family: "Paperlogy"; src: url("/fonts/paperlogy/Paperlogy-4Regular.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Paperlogy"; src: url("/fonts/paperlogy/Paperlogy-5Medium.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Paperlogy"; src: url("/fonts/paperlogy/Paperlogy-6SemiBold.woff2") format("woff2"); font-style: normal; font-weight: 600 650; font-display: swap; }
@font-face { font-family: "Paperlogy"; src: url("/fonts/paperlogy/Paperlogy-7Bold.woff2") format("woff2"); font-style: normal; font-weight: 700 900; font-display: swap; }

:root {
  color: #172033;
  background: #fff;
  font-family: "Paperlogy", "Noto Sans KR", system-ui, sans-serif;
  font-synthesis: none;
  --auth-blue: #1d4ed8;
  --auth-blue-dark: #173eaa;
  --auth-blue-soft: #eef4ff;
  --auth-ink: #172033;
  --auth-muted: #59677c;
  --auth-line: #d8e2f0;
  --auth-focus: #93b4f5;
}
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: radial-gradient(circle at 83% 12%, rgb(219 232 255 / .78), transparent 22rem), #fff; }
a { color: inherit; }
.auth-header { display: flex; min-height: 68px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--auth-line); padding: .8rem clamp(1rem, 4vw, 4rem); background: rgb(255 255 255 / .9); }
.auth-header a { font-weight: 750; letter-spacing: -.04em; text-decoration: none; }
.auth-header span { color: var(--auth-muted); font-size: .78rem; }
.auth-main { width: min(100% - 2rem, 560px); min-height: calc(100vh - 68px); margin: 0 auto; padding: clamp(3rem, 9vw, 7rem) 0 2.5rem; }
.auth-card { position: relative; overflow: hidden; border: 1px solid var(--auth-line); border-top: 4px solid var(--auth-blue); border-radius: .9rem; padding: clamp(1.5rem, 5vw, 3rem); background: rgb(255 255 255 / .96); box-shadow: 0 25px 80px rgb(29 78 216 / .075); }
.auth-mark { display: flex; width: 46px; height: 46px; align-items: end; gap: 3px; margin-bottom: 2.2rem; border-radius: .6rem; padding: 12px; background: var(--auth-blue); }
.auth-mark i { display: block; width: 6px; border-radius: 5px 5px 1px 1px; background: #dce8ff; }
.auth-mark i:nth-child(1) { height: 12px; }
.auth-mark i:nth-child(2) { height: 21px; }
.auth-mark i:nth-child(3) { height: 16px; }
.auth-eyebrow { margin: 0; color: var(--auth-blue); font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: .7rem 0 1rem; font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1.02; letter-spacing: -.055em; }
.auth-intro { margin: 0 0 2rem; color: var(--auth-muted); line-height: 1.7; }
form { display: grid; gap: .9rem; }
label { display: grid; gap: .48rem; color: #34445e; font-size: .82rem; font-weight: 650; }
input, select { width: 100%; min-height: 52px; border: 1px solid #b9cae3; border-radius: .6rem; padding: .75rem .9rem; color: var(--auth-ink); background: #fff; font: inherit; }
input[inputmode="numeric"] { font-size: 1.35rem; font-weight: 750; letter-spacing: .2em; text-align: center; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--auth-focus); outline-offset: 3px; }
button { display: flex; min-height: 52px; align-items: center; justify-content: space-between; border: 1px solid var(--auth-blue); border-radius: .6rem; padding: .8rem 1rem; color: white; background: var(--auth-blue); font: inherit; font-weight: 700; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
button:hover { border-color: var(--auth-blue-dark); background: var(--auth-blue-dark); }
button:active { transform: translateY(1px) scale(.99); }
.auth-route-note { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; border-top: 1px solid var(--auth-line); padding-top: 1.25rem; color: var(--auth-muted); font-size: .78rem; }
.auth-route-note a { color: var(--auth-blue); font-weight: 700; }
.auth-help { margin: 1.2rem 0 0; text-align: center; font-size: .78rem; }
.oauth-separator { display: flex; align-items: center; gap: .8rem; margin: 1.4rem 0; color: var(--auth-muted); font-size: .72rem; }
.oauth-separator::before, .oauth-separator::after { height: 1px; flex: 1; background: var(--auth-line); content: ""; }
.oauth-button { display: block; border: 1px solid #9bb7eb; border-radius: .6rem; padding: .9rem; color: var(--auth-blue); background: white; font-weight: 700; text-align: center; text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.oauth-button:hover { border-color: var(--auth-blue); background: var(--auth-blue-soft); }
.auth-main > footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem .3rem; color: var(--auth-muted); font-size: .72rem; }
.auth-main > footer nav { display: flex; gap: .8rem; }

.participant-invite-body { min-height: 100dvh; color: var(--auth-ink); }
.participant-invite-main { width: min(100% - 2rem, 620px); margin: 0 auto; padding: clamp(3rem, 10vw, 7rem) 0; }
.participant-invite-card { border: 1px solid var(--auth-line); border-top: 4px solid var(--auth-blue); border-radius: .9rem; padding: clamp(1.5rem, 5vw, 3rem); background: rgb(255 255 255 / .96); box-shadow: 0 25px 80px rgb(29 78 216 / .075); }
.participant-invite-card h1 { max-width: 30rem; }
.participant-invite-card > p:not(.auth-eyebrow) { color: var(--auth-muted); line-height: 1.75; }
.participant-invite-card form { margin: 2rem 0 1.5rem; }
.participant-invite-card button { width: 100%; }
.participant-invite-card small { color: var(--auth-muted); }

.page-wide { width: min(100% - 2rem, 1120px); }
.page-wide .auth-card { padding: clamp(1.5rem, 4vw, 3rem); }
.page-wide ul { display: grid; gap: .8rem; margin: 2rem 0 3rem; padding: 0; list-style: none; }
.page-wide li { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; align-items: center; gap: .45rem 1rem; border: 1px solid var(--auth-line); border-radius: .75rem; padding: 1rem; background: white; }
.page-wide li > strong { font-size: 1.05rem; }
.page-wide li > small, .page-wide li > span { color: var(--auth-muted); font-size: .78rem; }
.page-wide li form { display: flex; align-items: end; gap: .5rem; }
.page-wide li form label { min-width: 180px; }
.page-wide li input { min-height: 40px; padding: .5rem .65rem; }
.page-wide li button { min-height: 40px; padding: .55rem .75rem; font-size: .76rem; }
.page-wide .auth-card > h2 { margin-top: 3rem; border-top: 1px solid var(--auth-line); padding-top: 2rem; }
.page-wide .auth-card > form { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; }

@media (max-width: 760px) {
  .auth-route-note, .auth-main > footer { align-items: flex-start; flex-direction: column; }
  .page-wide li { grid-template-columns: 1fr; }
  .page-wide li form { align-items: stretch; flex-direction: column; }
  .page-wide li form label { min-width: 0; }
  .page-wide .auth-card > form { grid-template-columns: 1fr; }
}
