/* Resources — 사내 자료실 login (Figma 3092:4521)
 * Login flow mirrors asialand.co.kr/npco_login.jsp → npco_loginAct.jsp
 * fullpage: 1 frame → scroll → footer
 */

html.resources-page-html {
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.resources-page-html::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.resources-page-body {
  margin: 0;
  background: #fff;
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.resources-page-body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

#fullpage > .section.resources-section {
  position: relative;
  overflow: hidden;
  height: 100%;
  background: #0f2135;
}

.resources-page {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0f2135;
}

.resources-page-body .footer-section .main-footer,
#fullpage .main-footer {
  position: relative;
  bottom: auto;
  left: auto;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  height: 350px;
  background: #0a1c31;
  color: #fff;
}

.resources-stage {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0 0 90px;
}

/* Same bg treatment as hankyung.html — img/video/videobg.jpg */
.resources-stage__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}

.resources-hero,
.resources-main {
  position: absolute;
  z-index: 2;
}

/* Figma 3092:4667 — breadcrumb 125 / title 177 */
.resources-hero {
  top: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
  padding: 125px 60px 0;
  pointer-events: none;
}

.resources-hero a {
  pointer-events: auto;
}

.resources-hero__inner {
  max-width: 1520px;
}

.resources-hero .page-breadcrumb {
  margin: 0 0 20px;
}

.resources-hero .page-breadcrumb a,
.resources-hero .page-breadcrumb span {
  color: #fff;
}

.resources-hero .page-hero__title {
  margin: 0;
}

.resources-hero .page-hero__en,
.resources-hero .page-hero__ko,
.resources-hero .page-hero__divider {
  color: #fff;
}

.resources-hero .page-hero__emblem {
  top: 141px;
  right: 60px;
}

/* Figma 3092:4681 — card x660 y193 / 600×652 on 1920 artboard */
.resources-main {
  top: 193px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0 24px;
}

.resources-card {
  box-sizing: border-box;
  width: 600px;
  max-width: 100%;
  height: 652px;
  min-height: 652px;
  margin: 0;
  padding: 80px 100px 80px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: center;
}

.resources-card__title {
  margin: 0;
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -1px;
}

.resources-card__desc {
  margin: 10px 0 0;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.resources-card__en {
  margin: 10px 0 0;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.resources-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 50px;
}

.resources-field {
  display: block;
  margin: 0;
}

.resources-field input {
  box-sizing: border-box;
  width: 100%;
  max-width: 400px;
  height: 60px;
  margin: 0 auto;
  display: block;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.5px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.resources-field input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.resources-field input:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Figma 3110:1571 — checkbox left-aligned under inputs (x760) */
.resources-save {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  max-width: 400px;
  margin: 20px auto 0;
  cursor: pointer;
  user-select: none;
}

.resources-save input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.resources-save__box {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, background 0.2s ease;
  position: relative;
}

.resources-save__box::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  width: 10px;
  height: 16px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  opacity: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.resources-save input:checked + .resources-save__box {
  border-color: #fff;
  background: rgba(0, 140, 254, 0.35);
}

.resources-save input:checked + .resources-save__box::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.resources-save input:focus-visible + .resources-save__box {
  outline: 2px solid #008cfe;
  outline-offset: 2px;
}

.resources-save__label {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.4px;
}

/* Figma 3092:4696 — login y705 → 50px below checkbox */
.resources-card__submit {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 400px;
  height: 60px;
  margin: 50px auto 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #008cfe;
  color: #fff;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.55px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.resources-card__submit:hover {
  background: #0077d9;
}

.resources-card__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.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;
}

/* Intro motion */
body.resources-page-body.is-resources-intro:not(.is-resources-entered) .resources-stage__bg {
  opacity: 0;
}

body.resources-page-body.is-resources-intro:not(.is-resources-entered) .resources-hero .page-breadcrumb,
body.resources-page-body.is-resources-intro:not(.is-resources-entered) .resources-hero .page-hero__en,
body.resources-page-body.is-resources-intro:not(.is-resources-entered) .resources-hero .page-hero__divider,
body.resources-page-body.is-resources-intro:not(.is-resources-entered) .resources-hero .page-hero__ko,
body.resources-page-body.is-resources-intro:not(.is-resources-entered) .resources-hero .page-hero__emblem,
body.resources-page-body.is-resources-intro:not(.is-resources-entered) .resources-card {
  opacity: 0;
  transform: translateY(18px);
}

body.resources-page-body.is-resources-intro .resources-stage__bg,
body.resources-page-body.is-resources-intro .resources-hero .page-breadcrumb,
body.resources-page-body.is-resources-intro .resources-hero .page-hero__en,
body.resources-page-body.is-resources-intro .resources-hero .page-hero__divider,
body.resources-page-body.is-resources-intro .resources-hero .page-hero__ko,
body.resources-page-body.is-resources-intro .resources-hero .page-hero__emblem,
body.resources-page-body.is-resources-intro .resources-card {
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

body.resources-page-body.is-resources-intro.is-resources-entered .resources-stage__bg {
  opacity: 1;
}

body.resources-page-body.is-resources-intro.is-resources-entered .resources-hero .page-breadcrumb,
body.resources-page-body.is-resources-intro.is-resources-entered .resources-hero .page-hero__en,
body.resources-page-body.is-resources-intro.is-resources-entered .resources-hero .page-hero__divider,
body.resources-page-body.is-resources-intro.is-resources-entered .resources-hero .page-hero__ko,
body.resources-page-body.is-resources-intro.is-resources-entered .resources-hero .page-hero__emblem,
body.resources-page-body.is-resources-intro.is-resources-entered .resources-card {
  opacity: 1;
  transform: none;
}

body.resources-page-body.is-resources-intro.is-resources-entered .resources-hero .page-breadcrumb { transition-delay: 0.2s; }
body.resources-page-body.is-resources-intro.is-resources-entered .resources-hero .page-hero__en { transition-delay: 0.32s; }
body.resources-page-body.is-resources-intro.is-resources-entered .resources-hero .page-hero__divider { transition-delay: 0.4s; }
body.resources-page-body.is-resources-intro.is-resources-entered .resources-hero .page-hero__ko { transition-delay: 0.46s; }
body.resources-page-body.is-resources-intro.is-resources-entered .resources-hero .page-hero__emblem { transition-delay: 0.55s; }
body.resources-page-body.is-resources-intro.is-resources-entered .resources-card { transition-delay: 0.62s; }

@media (max-width: 900px) {
  .resources-hero {
    padding: 110px 24px 0;
  }

  .resources-hero .page-hero__emblem {
    display: none;
  }

  .resources-main {
    top: 200px;
    bottom: 24px;
    align-items: flex-start;
    overflow: auto;
  }

  .resources-card {
    height: auto;
    min-height: 0;
    padding: 56px 28px 48px;
  }

  .resources-card__title {
    font-size: 32px;
  }

  .resources-card__desc,
  .resources-card__en {
    font-size: 16px;
  }

  .resources-field input,
  .resources-card__submit {
    max-width: 100%;
  }

  .resources-save {
    max-width: 100%;
  }

  .resources-card__submit {
    margin-top: 36px;
  }
}

/* ===== Mobile·Tablet (≤768): fullpage 해제 · 전체폭 로그인 카드 (나의 지원서와 동일) ===== */
@media (max-width: 768px) {
  html:has(body.is-resources-mobile),
  body.resources-page-body.is-resources-mobile {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .is-resources-mobile #fullpage {
    height: auto !important;
    transform: none !important;
  }

  .is-resources-mobile #fullpage > .section.resources-section,
  .is-resources-mobile #fullpage > .section.footer-section {
    width: 100% !important;
    height: auto !important;
    overflow: visible;
  }

  .resources-page,
  .resources-stage {
    height: auto;
  }

  .resources-stage {
    padding-bottom: 48px;
  }

  .resources-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(10, 28, 49, 0.7) 60%, rgba(10, 28, 49, 0.82) 100%);
    pointer-events: none;
  }

  /* Hero */
  .resources-hero,
  .resources-main {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
  }

  .resources-hero {
    padding: 108px 20px 24px;
  }

  .resources-hero .page-breadcrumb {
    margin-bottom: 12px;
  }

  /* Card */
  .resources-main {
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    padding: 8px 20px 0;
  }

  .resources-card {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 32px 20px 28px;
    border-radius: 16px;
  }

  .resources-card__title {
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: -0.6px;
  }

  .resources-card__desc {
    margin-top: 6px;
    font-size: 15px;
  }

  .resources-card__en {
    margin-top: 6px;
    font-size: 14px;
    letter-spacing: -0.2px;
    opacity: 0.8;
  }

  .resources-fields {
    gap: 12px;
    margin-top: 28px;
  }

  /* 16px — iOS 입력 시 화면 확대 방지 */
  .resources-field input {
    max-width: none;
    height: 52px;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 600;
  }

  .resources-save {
    max-width: none;
    gap: 8px;
    margin-top: 14px;
  }

  .resources-save__box {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .resources-save__box::after {
    left: 9px;
    top: 4px;
    width: 7px;
    height: 13px;
    border-width: 0 2px 2px 0;
  }

  .resources-save__label {
    font-size: 14px;
    font-weight: 600;
  }

  .resources-card__submit {
    max-width: none;
    height: 52px;
    margin-top: 24px;
    font-size: 17px;
  }

  /* Footer */
  .resources-page-body .footer-section .main-footer,
  .resources-page-body #fullpage .main-footer {
    height: auto;
    min-height: 0;
  }

  .resources-page-body .main-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 20px 44px;
    gap: 24px;
  }

  .resources-page-body .main-footer__logo {
    width: 220px;
    height: auto;
  }

  .resources-page-body .main-footer__center {
    max-width: none;
    width: 100%;
    flex: none;
    margin-left: 0;
  }

  .resources-page-body .main-footer__links {
    gap: 20px;
    flex-wrap: wrap;
  }

  .resources-page-body .main-footer__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .resources-page-body .main-footer__sep {
    display: none;
  }

  .resources-page-body .main-footer__copy {
    margin-top: 20px;
  }

  .resources-page-body .main-footer__family {
    width: 100%;
    margin-left: 0;
  }

  .resources-page-body .main-footer__family-btn,
  .resources-page-body .main-footer__family-panel {
    width: 100%;
  }
}

/* Resources alert — same design as recruit / status alert */
html:has(body.resources-page-body.is-resources-alert-open),
body.resources-page-body.is-resources-alert-open {
  overflow: hidden;
}

.resources-alert[hidden] {
  display: none !important;
}

.resources-alert {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.resources-alert__dim {
  position: absolute;
  inset: 0;
  background: rgba(10, 28, 49, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.resources-alert.is-open .resources-alert__dim {
  opacity: 1;
}

.resources-alert__panel {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(420px, 100%);
  padding: 36px 32px 28px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(10, 28, 49, 0.18);
  text-align: center;
  opacity: 0;
  transition: opacity 0.24s ease;
  -webkit-font-smoothing: antialiased;
}

.resources-alert.is-open .resources-alert__panel {
  opacity: 1;
}

.resources-alert__label {
  margin: 0 0 14px;
  color: #0077d9;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
}

.resources-alert__msg {
  margin: 0 0 28px;
  color: #0a1c31;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.5px;
  word-break: keep-all;
  white-space: pre-line;
}

.resources-alert__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.resources-alert__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 46px;
  padding: 0 28px;
  border: 0;
  border-radius: 30px;
  background: #0077d9;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.4px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.resources-alert__btn:hover {
  background: #0066bb;
}

.resources-alert__btn:focus-visible {
  outline: 2px solid #0077d9;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .resources-alert__panel {
    padding: 32px 24px 24px;
  }

  .resources-alert__msg {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.resources-page-body.is-resources-intro .resources-stage__bg,
  body.resources-page-body.is-resources-intro .resources-hero .page-breadcrumb,
  body.resources-page-body.is-resources-intro .resources-hero .page-hero__en,
  body.resources-page-body.is-resources-intro .resources-hero .page-hero__divider,
  body.resources-page-body.is-resources-intro .resources-hero .page-hero__ko,
  body.resources-page-body.is-resources-intro .resources-hero .page-hero__emblem,
  body.resources-page-body.is-resources-intro .resources-card {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .resources-alert__dim,
  .resources-alert__panel {
    transition: none !important;
  }

  .resources-alert__dim,
  .resources-alert.is-open .resources-alert__panel {
    opacity: 1 !important;
  }
}
