/* Login page: the supplied artwork is the background; the real form sits exactly over its drawn card. */
.login-scene {
  --lg-ink: #14213d; --lg-blue: #2f6bff; --lg-purple: #8a3ffc;
  display: block; padding: 0; overflow: hidden; min-height: 100vh; min-height: 100dvh;
  background: #8fc3ee url("../login-bg.png") center / cover no-repeat;
  color: var(--lg-ink); font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}

/* Stage = the image at its 1672x941 ratio, scaled to cover the viewport; the card is placed in % of the image. */
.stage {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max(100vw, 177.67vh); aspect-ratio: 1672 / 941;
  background: url("../login-bg.png") center / 100% 100% no-repeat; container-type: inline-size;
}
.auth-card {
  position: absolute; left: 66.4%; top: 18.7%; width: 30.9%; height: 64.3%; max-width: none; box-sizing: border-box;
  padding: 0 2.6cqw; display: flex; flex-direction: column; justify-content: center; border-radius: 2.6cqw;
  background: rgba(244, 244, 247, .97); border: 1px solid rgba(255, 255, 255, .8); box-shadow: none;
}
.card-brand { display: flex; justify-content: center; align-items: center; gap: .6cqw; }
.brand-mark { width: 3cqw; height: 3cqw; }
.brand-mark rect { fill: var(--lg-blue); }
.brand-mark rect:nth-child(even) { fill: #46a3f7; }
.brand-name { font-size: 3.1cqw; font-weight: 800; letter-spacing: -.03em; color: #0d1326; }
.brand-name em { font-style: normal; color: var(--lg-blue); }
.card-tag { text-align: center; margin: .4cqw 0 2.6cqw; color: #4a566f; font-size: 1.15cqw; }

.auth-card .field { position: relative; margin-bottom: 1.2cqw; }
.auth-card .field .ico { position: absolute; left: 1.4cqw; top: 50%; width: 1.7cqw; height: 1.7cqw; transform: translateY(-50%);
  fill: none; stroke: #4a566f; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.auth-card input[type="text"], .auth-card input[type="password"] {
  height: 4.6cqw; padding: 0 4cqw 0 4.4cqw; border-radius: 1cqw; border: 1px solid rgba(20, 33, 61, .08);
  background: #fff; color: var(--lg-ink); font-size: max(15px, 1.2cqw);
}
.auth-card input::placeholder { color: #7b859b; }
.auth-card input:focus { outline: 2px solid var(--lg-blue); outline-offset: 0; }
.pw-toggle { position: absolute; right: .6cqw; top: 50%; transform: translateY(-50%); width: 3.2cqw; height: 3.2cqw; min-width: 32px; min-height: 32px;
  border: 0; background: transparent; cursor: pointer; padding: 0; }
.pw-toggle svg { width: 100%; height: 100%; padding: 15%; box-sizing: border-box; fill: none; stroke: #2a3350; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pw-toggle .slash { display: none; }
.pw-toggle[aria-pressed="true"] .slash { display: block; }

.row-between { display: flex; justify-content: space-between; align-items: center; margin: 1.6cqw 0; font-size: max(13px, 1.15cqw); }
.auth-card .remember { margin: 0; gap: .7cqw; font-size: inherit; font-weight: 500; cursor: pointer; color: var(--lg-ink); }
.auth-card .remember input { width: 1.6cqw; height: 1.6cqw; min-width: 18px; min-height: 18px; accent-color: var(--lg-blue); margin: 0; }
.forgot { font-weight: 600; cursor: help; }

.auth-submit {
  height: 4.6cqw; min-height: 46px; margin-top: 0; border-radius: 1cqw; font-size: max(16px, 1.3cqw); color: #fff;
  background: linear-gradient(90deg, #2c7bff 0%, #8a3ffc 100%); box-shadow: 0 .7cqw 1.5cqw rgba(88, 80, 240, .3);
}
.auth-submit:hover { filter: brightness(1.06); }
.auth-submit b { margin-left: 6px; font-weight: 500; }
.auth-error { border-radius: 10px; margin-bottom: 1cqw; background: #fff; font-size: max(12px, 1cqw); padding: .7cqw 1cqw; }
.auth-warn { position: absolute; left: 0; right: 0; top: 100%; margin: .8cqw 0 0; background: rgba(255, 255, 255, .92); font-size: max(11px, .9cqw); }

/* Narrow/portrait screens: the artwork is cropped, so the card can't line up with it; centre a card on top instead. */
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .stage { position: static; transform: none; width: auto; aspect-ratio: auto; background: none; container-type: normal;
    min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 20px 16px; box-sizing: border-box; }
  .auth-card { position: relative; left: auto; top: auto; width: 100%; max-width: 400px; height: auto; padding: 32px 24px 26px;
    border-radius: 24px; background: rgba(244, 244, 247, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .brand-mark { width: 32px; height: 32px; } .brand-name { font-size: 28px; } .card-tag { font-size: 13px; margin: 6px 0 24px; }
  .auth-card .field { margin-bottom: 14px; } .auth-card .field .ico { left: 16px; width: 22px; height: 22px; }
  .auth-card input[type="text"], .auth-card input[type="password"] { height: 54px; padding: 0 48px 0 48px; border-radius: 12px; font-size: 16px; }
  .pw-toggle { width: 40px; height: 40px; right: 6px; }
  .row-between { margin: 18px 0; font-size: 14px; } .auth-card .remember { gap: 8px; }
  .auth-submit { height: 54px; border-radius: 12px; font-size: 17px; }
  .auth-error { font-size: 13px; padding: 10px 12px; } .auth-warn { position: static; font-size: 12px; margin-top: 14px; }
}
