/* 향산캠퍼스 홈페이지 '학원 로그인' 칸. 홈페이지 색(--primary 보라, --line, --muted) 그대로 */
.portal-page { align-items: start; }
.portal-steps { margin-top: 22px; }
.portal-box { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: 12px; background: var(--wash); }
.portal-box h2 { margin-bottom: 18px; }
.portal-chat { margin: -6px 0 16px; padding: 10px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: .93rem; }
.hs-login { display: grid; gap: 16px; }
.hs-login fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.hs-login legend { margin-bottom: 8px; font-size: .9rem; font-weight: 650; color: var(--muted); }
.hs-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.hs-login label { position: relative; min-width: 0; cursor: pointer; }
.hs-login input[type=radio] { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.hs-seg span { display: grid; place-items: center; min-height: 44px; border-radius: 7px; font-weight: 680; color: var(--muted); }
.hs-seg input:checked + span { background: var(--primary); color: #fff; }
.hs-acad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hs-acad legend { grid-column: 1 / -1; }
.hs-acad span { display: grid; gap: 2px; min-height: 64px; align-content: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.hs-acad b { font-size: .95rem; font-weight: 700; line-height: 1.35; }
.hs-acad small { font-size: .8rem; color: var(--muted); }
.hs-acad input:checked + span { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.hs-login input[type=radio]:focus-visible + span { outline: 3px solid #8669d0; outline-offset: 2px; }
.hs-fld { display: grid; gap: 6px; }
.hs-fld label { font-size: .9rem; font-weight: 650; }
.hs-fld input { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid #cfcbd9; border-radius: 8px; background: #fff; font: inherit; color: var(--ink); }
.hs-fld input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px #e7e1f7; }
.hs-fld input[aria-invalid="true"] { border-color: #c2413b; }
.hs-msg { min-height: 1.2em; font-size: .92rem; font-weight: 600; color: #b3362f; }
.hs-msg:empty { display: none; }
.hs-msg[data-kind="info"] { color: var(--primary); }
.hs-go { width: 100%; min-height: 50px; border: 0; font-size: 1.02rem; }
.hs-go[disabled] { opacity: .65; cursor: progress; }
.hs-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: .9rem; color: var(--muted); }
.hs-links a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 830px) { .portal-page { grid-template-columns: minmax(0, 1fr) !important; } .portal-box { order: -1; } }
@media (max-width: 420px) { .hs-acad { grid-template-columns: minmax(0, 1fr); } }
