/* Sign-in entry pages. Approved design: docs/work-runs/2026-09-23-login-first-preview/login.html */
:root { font-family: "Segoe UI", sans-serif; font-synthesis: none; color: #062e56; background: #062642; --unit: clamp(.68px, min(.075vw, .10627dvh), .77px); }
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 36px 24px 92px;
  overflow-x: hidden;
  background: linear-gradient(125deg, #092942 0%, #0b3966 55%, #07264a 100%);
}
.scene, .facet { position: fixed; inset: 0; pointer-events: none; }
.scene { z-index: 0; overflow: hidden; }
.facet-navy {
  background: linear-gradient(165deg, #0b3154, #041b31);
  clip-path: polygon(0 0, 51% 0, 18% 100%, 0 100%);
}
.facet-blue {
  background: linear-gradient(140deg, #1656ad, #0b3975);
  clip-path: polygon(79% 0, 100% 0, 100% 100%, 48% 100%);
  opacity: .65;
}
.facet-line {
  background: rgba(66, 153, 231, .38);
  clip-path: polygon(48.7% 0, 49.2% 0, 16.2% 100%, 15.7% 100%);
}
.facet-corner {
  background: rgba(45, 112, 210, .62);
  clip-path: polygon(89% 0, 100% 0, 100% 27%);
}
.facet-fine {
  background: rgba(106, 173, 236, .16);
  clip-path: polygon(82% 0, 82.2% 0, 49.5% 100%, 49.3% 100%);
}
main { position: relative; z-index: 1; width: min(calc(588 * var(--unit)), 100%); }
.card {
  height: calc(560 * var(--unit));
  padding: calc(76 * var(--unit)) calc(56 * var(--unit)) calc(72 * var(--unit));
  border-radius: calc(17 * var(--unit));
  background: linear-gradient(145deg, #fff 58%, #f7fafc);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .26);
  text-align: center;
}
.logo-frame { position: relative; width: calc(322 * var(--unit)); height: calc(74 * var(--unit)); margin: 0 auto calc(55 * var(--unit)); overflow: hidden; }
.logo-frame img { position: absolute; display: block; width: 116.32%; height: auto; top: -80.5%; left: -3.39%; }
h1 { margin: 0; font-size: calc(40 * var(--unit)); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.product { margin: calc(14 * var(--unit)) 0 0; color: #496783; font-size: calc(26 * var(--unit)); line-height: calc(36 * var(--unit)); }
.sign-in {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(29 * var(--unit));
  width: 100%;
  min-height: calc(70 * var(--unit));
  margin-top: calc(44 * var(--unit));
  padding: calc(10 * var(--unit)) calc(67 * var(--unit)) calc(10 * var(--unit)) calc(47 * var(--unit));
  border: 0;
  border-radius: calc(8 * var(--unit));
  background: linear-gradient(115deg, #00366a, #073c70);
  color: #fff;
  font: 600 calc(23 * var(--unit)) "Segoe UI", sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.sign-in:hover { background: linear-gradient(115deg, #004483, #0a4a8a); }
.sign-in:focus-visible { outline: 3px solid #6aadec; outline-offset: 3px; }
.sign-in img { display: block; flex: 0 0 auto; width: calc(33 * var(--unit)); height: calc(33 * var(--unit)); }
.arrow { position: absolute; right: calc(37 * var(--unit)); display: block; width: calc(23 * var(--unit)); height: calc(19 * var(--unit)); }
.staff { display: flex; align-items: center; gap: calc(23 * var(--unit)); margin: calc(44 * var(--unit)) 0 0; color: #42617c; font-size: calc(18 * var(--unit)); line-height: 1.5; white-space: nowrap; }
.staff::before, .staff::after { content: ""; flex: 1; height: 1px; background: #c7d4df; }
.card.message { height: auto; }
.message .detail { margin: calc(30 * var(--unit)) 0 0; color: #42617c; font-size: calc(19 * var(--unit)); line-height: 1.55; }
.message .sign-in { padding-left: calc(47 * var(--unit)); }
::selection { background: #c8e8fa; color: #012a4f; }
@media (max-width: 700px), (max-height: 480px) {
  :root { --unit: .72px; }
  body { padding: 30px 18px 68px; }
  main { width: min(424px, 100%); }
  .card { height: auto; padding: 42px 28px 43px; border-radius: 14px; }
  .sign-in { min-height: 55px; }
}
@media (max-width: 390px) {
  .logo-frame { width: 225px; height: 53px; margin-bottom: 34px; }
  h1 { font-size: 25px; }
  .product { font-size: 16px; }
  .sign-in { gap: 10px; padding-left: 14px; padding-right: 38px; font-size: 15px; }
  .arrow { right: 13px; width: 18px; }
  .staff { gap: 10px; font-size: 12px; }
  .message .detail { font-size: 14px; }
}
