/* K-AWARDS 2026 학생부 — 회원가입·신청·마이페이지 (style.css 위에 덧씀) */

.app .page { position: relative; min-height: 100vh; padding-block: calc(var(--gnb-h) + 64px) 110px; background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); overflow: hidden; }
.page::before { content: ''; position: absolute; inset: 0; background: url('../assets/wave-bg.jpg') center bottom / cover no-repeat; opacity: .14; pointer-events: none; }
.page__glow { position: absolute; left: 50%; top: -520px; width: 1100px; height: 1100px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(47,107,237,.18), transparent 70%); pointer-events: none; }
.page__inner { position: relative; z-index: 1; }
.page__head { text-align: center; margin-bottom: 40px; }
.page__title { margin-top: 12px; font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.035em; }
.page__desc { margin-top: 10px; color: rgba(255,255,255,.6); }

.card { max-width: 1000px; margin: 0 auto 24px; padding: 40px 48px; border-radius: 18px; background: var(--panel); border: 1px solid rgba(255,255,255,.06); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.card--auth { max-width: 460px; }
.card--auth .field + .field { margin-top: 18px; }
.card--auth .btn--block { margin-top: 26px; }
.card--center { max-width: 640px; text-align: center; padding-block: 52px; }
.card__title { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.card--center .done__icon, .card--center .mail-icon { margin-bottom: 30px; }
.card__desc { margin-top: 14px; color: var(--t-3); line-height: 1.8; }
.card__desc b { color: #fff; }
.card__foot { margin-top: 22px; font-size: 14px; }
.card__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.card__h { font-size: 20px; font-weight: 800; }
.card__h small { margin-left: 6px; font-size: 14px; font-weight: 500; color: var(--t-4); }
.card > .card__h:first-child { margin-bottom: 18px; }

.form__sub { margin: 36px 0 0; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 16px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.card--form > .alert:first-of-type + .form__sub, .card--form > input + .form__sub { margin-top: 0; }
.card--form .grid { padding-top: 22px; }
.card--form .agree { margin-top: 20px; }

.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn-row--center { justify-content: center; }
.link { color: #9fb0ff; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: #fff; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.pre { white-space: pre-line; word-break: break-word; }

.alert { margin: 0 0 20px; padding: 14px 18px; border-radius: 10px; font-size: 14px; line-height: 1.6; text-align: left; border: 1px solid; }
.alert--error { background: rgba(255,90,90,.1); border-color: rgba(255,107,107,.45); color: #ffc2c2; }
.alert--success { background: rgba(63,227,180,.1); border-color: rgba(63,227,180,.4); color: #b9f5e3; }
.alert--info { background: rgba(143,162,255,.1); border-color: rgba(143,162,255,.35); color: #d4dbff; }
.alert b { color: #fff; }
.card--center .alert { margin-top: 22px; }

.field input.is-readonly { color: rgba(255,255,255,.6); background: rgba(255,255,255,.03); border-style: dashed; cursor: default; }
.field.is-error input, .field.is-error select, .field.is-error textarea, .field.is-error .file { border-color: #ff6b6b !important; }
.check.is-error { border-color: #ff6b6b; }
.agree + .err { margin-top: 8px; }

/* style.css 의 체크박스 박스 규칙이 두 번째 span 에 적용되지 않도록 */
.check > .check__text { flex: 1; width: auto; height: auto; margin: 0; border: 0; border-radius: 0; background: none; }
.check--all .check__text { font-weight: 700; }
.check__text a { position: relative; z-index: 1; }

.auth-links { margin-top: 20px; display: flex; justify-content: center; gap: 12px; font-size: 14px; color: var(--t-4); }

/* 참가 절차 */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 44px auto 0; max-width: 1000px; counter-reset: none; }
.flow li { position: relative; padding: 30px 28px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); }
.flow li + li::before { content: ''; position: absolute; left: -13px; top: 50%; width: 10px; height: 10px; border: solid rgba(143,162,255,.7); border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg); }
.flow span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #4a5bff, #8a3dff); font-weight: 800; }
.flow em { display: block; margin-top: 18px; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--accent); }
.flow b { display: block; margin-top: 6px; font-size: 20px; font-weight: 800; }
.flow p { margin-top: 10px; font-size: 14px; line-height: 1.7; color: var(--t-3); }

.flow--mini { max-width: 640px; margin: 0 auto 34px; gap: 8px; }
.flow--mini li { padding: 12px 14px; display: flex; align-items: center; gap: 10px; border-radius: 999px; background: rgba(255,255,255,.03); }
.flow--mini li + li::before { left: -8px; width: 7px; height: 7px; }
.flow--mini span { flex: none; width: 26px; height: 26px; font-size: 13px; background: rgba(255,255,255,.1); color: var(--t-4); }
.flow--mini b { margin: 0; font-size: 13px; font-weight: 600; color: var(--t-4); }
.flow--mini li.is-done span { background: rgba(143,162,255,.35); color: #fff; }
.flow--mini li.is-done b { color: var(--t-2); }
.flow--mini li.is-active { border-color: rgba(143,162,255,.55); background: rgba(106,80,255,.14); }
.flow--mini li.is-active span { background: linear-gradient(135deg, #4a5bff, #8a3dff); color: #fff; }
.flow--mini li.is-active b { color: #fff; font-weight: 800; }

.hero__division { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(180,140,255,.45); background: rgba(133,46,233,.16); font-size: clamp(13px, 1.3vw, 16px); font-weight: 700; color: #e6dbff; letter-spacing: .02em; }
.hero__division + .hero__title { margin-top: 10px; }

.apply__cta { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.apply__state { margin-top: 18px; text-align: center; font-size: 14px; color: var(--t-3); }
.apply__state b { color: #fff; }

/* 인증 메일 아이콘 */
.mail-icon { position: relative; width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 12px rgba(106,80,255,.15), 0 0 50px rgba(106,80,255,.6); }
.mail-icon::before { content: ''; position: absolute; left: 22px; top: 27px; width: 40px; height: 30px; border: 3px solid #fff; border-radius: 4px; }
.mail-icon::after { content: ''; position: absolute; left: 30px; top: 22px; width: 24px; height: 24px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.support-mail { margin-top: 20px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.support-mail a { color: #a9b6ff; text-decoration: underline; text-underline-offset: 4px; word-break: break-all; }
.support-mail a:hover { color: #fff; }

.tips { margin: 26px auto 0; max-width: 420px; text-align: left; display: grid; gap: 8px; font-size: 14px; color: var(--t-3); }
.tips li { position: relative; padding-left: 16px; }
.tips li::before { content: ''; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.tips b { color: #fff; }
.resend { margin-top: 26px; display: grid; justify-items: center; gap: 12px; }
.resend .field { width: 100%; max-width: 360px; text-align: left; }

/* 마이페이지 */
.empty { padding: 40px 0 20px; text-align: center; color: var(--t-3); display: grid; justify-items: center; gap: 16px; }
.app-list { display: grid; gap: 10px; }
.app-item { border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); }
.app-item[open] { border-color: rgba(143,162,255,.35); }
.app-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 22px; }
.app-item summary::-webkit-details-marker { display: none; }
.app-item__no { font-size: 13px; color: var(--accent); flex: none; }
.app-item__title { flex: 1; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-item summary i { flex: none; width: 9px; height: 9px; border: solid rgba(255,255,255,.6); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.app-item[open] summary i { transform: rotate(-135deg); }
.app-item .kv { margin: 0 22px 22px; }
.card > .kv, .card > p.hint { margin-top: 16px; }

.kv { display: grid; grid-template-columns: 120px 1fr; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; }
.kv dt, .kv dd { padding: 11px 16px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.kv dt { color: var(--t-3); background: rgba(255,255,255,.03); font-weight: 600; }
.kv dd { word-break: break-word; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }

.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: rgba(255,255,255,.1); color: #fff; }
.badge--submitted { background: rgba(143,162,255,.2); color: #c9d2ff; }
.badge--reviewing { background: rgba(255,207,107,.18); color: #ffdf9e; }
.badge--passed, .badge--awarded { background: rgba(63,227,180,.18); color: #9ff0d8; }
.badge--rejected, .badge--canceled { background: rgba(255,255,255,.08); color: rgba(255,255,255,.55); }

.upload-progress { margin-top: 20px; }
.upload-progress__bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.upload-progress__bar span { display: block; width: 0; height: 100%; background: var(--grad); transition: width .2s; }
.upload-progress p { margin-top: 8px; font-size: 13px; color: var(--t-3); }

.doc h2 { margin: 28px 0 8px; font-size: 17px; font-weight: 800; }
.doc p, .doc li { font-size: 15px; line-height: 1.8; color: var(--t-2); }
.doc ul { padding-left: 18px; list-style: disc; }

.app .strip { margin-top: 0; }
.app .stepper { margin-top: 40px; }

@media (max-width: 1024px) {
  .flow { grid-template-columns: 1fr; }
  .flow li + li::before { left: 50%; top: -12px; transform: translateX(-50%) rotate(135deg); }
}
@media (max-width: 720px) {
  .app .page { padding-block: calc(var(--gnb-h) + 36px) 80px; }
  .card { padding: 28px 20px; border-radius: 14px; }
  .card--center { padding-block: 40px; }
  .card__title { font-size: 22px; }
  .card__row { flex-direction: column; align-items: stretch; }
  .flow--mini { grid-template-columns: repeat(3, 1fr); }
  .flow--mini li { flex-direction: column; gap: 6px; padding: 10px 6px; border-radius: 12px; text-align: center; }
  .flow--mini li + li::before { display: none; }
  .flow--mini b { font-size: 11px; line-height: 1.3; }
  .kv { grid-template-columns: 90px 1fr; }
  .kv dt, .kv dd { padding: 10px 12px; font-size: 13px; }
  .app-item summary { flex-wrap: wrap; gap: 8px 12px; padding: 16px; }
  .app-item__title { flex-basis: 100%; order: 3; white-space: normal; }
  .app-item .kv { margin: 0 12px 14px; }
  .btn-row .btn { flex: 1; }
}
