:root {
  --navy: #08246d;
  --blue: #1768e8;
  --blue-dark: #0c45be;
  --line: #c9dcf5;
  --surface: rgba(255, 255, 255, 0.94);
  --muted: #607196;
  --danger: #d33a4a;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  font-family: "Noto Sans JP", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--navy);
  background: #e9eef6;
}
button, input { font: inherit; }
a { color: inherit; }
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 10% 10%, rgba(55, 123, 237, .18), transparent 30%),
    radial-gradient(circle at 88% 84%, rgba(30, 89, 208, .13), transparent 28%),
    #eaf0f8;
}
.login-shell {
  width: min(1180px, 100%);
  min-height: min(760px, calc(100dvh - 64px));
  display: grid;
  grid-template-columns: 47% 53%;
  overflow: hidden;
  border: 1px solid rgba(119, 155, 207, .3);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(28, 60, 112, .18);
}
.brand-panel {
  position: relative;
  overflow: hidden;
  padding: 52px 54px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(5, 30, 94, .93), rgba(17, 92, 222, .88)),
    url("assets/denai-background.png") center left/cover no-repeat;
}
.brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(3, 20, 69, .45));
  pointer-events: none;
}
.brand-logos, .brand-copy, .brand-orb { position: relative; z-index: 1; }
.brand-logos { display: flex; align-items: center; gap: 22px; }
.nec-logo { width: 180px; max-width: 43%; filter: brightness(0) invert(1); object-fit: contain; }
.denai-logo { width: 145px; max-width: 38%; filter: brightness(0) invert(1); object-fit: contain; }
.brand-copy { margin-top: 150px; max-width: 430px; }
.eyebrow, .form-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}
.eyebrow::before, .form-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 9px;
  background: currentColor;
}
.brand-copy h1 { margin: 20px 0 18px; font-size: clamp(38px, 4.1vw, 61px); line-height: 1.06; letter-spacing: -.04em; }
.brand-copy p { margin: 0; max-width: 390px; font-size: 16px; line-height: 1.9; color: rgba(255,255,255,.84); }
.brand-orb { position: absolute; right: -92px; bottom: -120px; width: 350px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.23); border-radius: 50%; }
.brand-orb span { position: absolute; inset: 18%; border: 1px solid rgba(255,255,255,.19); border-radius: 50%; animation: orbit 9s linear infinite; }
.brand-orb span:nth-child(2) { inset: 34%; animation-duration: 6s; animation-direction: reverse; }
.brand-orb span:nth-child(3) { inset: 46%; background: rgba(255,255,255,.13); border: 0; animation: pulse 2.6s ease-in-out infinite; }
.form-panel { position: relative; display: grid; place-items: center; padding: 62px 70px; background: rgba(255,255,255,.88); }
.back-link { position: absolute; top: 34px; right: 38px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px; font-weight: 750; color: #52678e; transition: color .2s ease, transform .2s ease; }
.back-link:hover { color: var(--blue); transform: translateX(-3px); }
.back-link svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-wrap { width: min(430px, 100%); }
.mobile-logo-row { display: none; }
.form-kicker { color: var(--blue); }
.form-wrap h2 { margin: 16px 0 8px; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -.04em; }
.form-intro { margin: 0 0 36px; color: var(--muted); font-size: 15px; }
.field-group { margin-bottom: 22px; }
.field-group label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 800; color: #203a75; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; }
.label-row a { font-size: 12px; font-weight: 750; color: var(--blue); text-decoration: none; }
.label-row a:hover { text-decoration: underline; }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; left: 17px; top: 50%; width: 20px; transform: translateY(-50%); fill: none; stroke: #6b80a7; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.input-wrap input { width: 100%; height: 58px; padding: 0 52px 0 50px; border: 1px solid var(--line); border-radius: 15px; outline: none; background: #f9fbff; color: #122c67; font-size: 15px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.input-wrap input::placeholder { color: #9aa8bf; }
.input-wrap input:focus { border-color: #4a8bf0; background: #fff; box-shadow: 0 0 0 4px rgba(23,104,232,.11); }
.password-toggle { position: absolute; right: 10px; top: 50%; width: 40px; height: 40px; transform: translateY(-50%); display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #60749b; cursor: pointer; }
.password-toggle:hover { background: #edf4ff; color: var(--blue); }
.password-toggle svg { position: static; width: 21px; transform: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eye-closed, .password-toggle.showing .eye-open { display: none; }
.password-toggle.showing .eye-closed { display: block; }
.field-error { display: block; min-height: 18px; padding-top: 5px; color: var(--danger); font-size: 12px; }
.remember-row { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 27px; cursor: pointer; color: #53688f; font-size: 13px; font-weight: 650; }
.remember-row input { position: absolute; opacity: 0; pointer-events: none; }
.checkmark { width: 20px; height: 20px; border: 1px solid #b7cae6; border-radius: 6px; background: #fff; transition: .2s ease; }
.remember-row input:checked + .checkmark { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 4px #fff; }
.login-button { width: 100%; height: 60px; border: 0; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; font-weight: 850; letter-spacing: .04em; cursor: pointer; box-shadow: 0 14px 28px rgba(23,104,232,.26); transition: transform .2s ease, box-shadow .2s ease; }
.login-button:hover { transform: translateY(-2px); box-shadow: 0 18px 32px rgba(23,104,232,.32); }
.login-button:active { transform: translateY(0); }
.login-button svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.login-button:hover svg { transform: translateX(4px); }
.status-message { min-height: 42px; margin-top: 14px; padding: 0; border-radius: 11px; font-size: 12px; line-height: 1.55; }
.status-message:not(:empty) { padding: 10px 12px; }
.status-message.success { color: #0a6d49; background: #eaf9f3; border: 1px solid #bce9d8; }
.status-message.info { color: #24569e; background: #edf4ff; border: 1px solid #c9dcfa; }
.support-copy { margin: 20px auto 0; max-width: 360px; text-align: center; color: #8190aa; font-size: 11px; line-height: 1.7; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.15); opacity: .55; } }
@media (max-width: 1100px) {
  .login-shell { grid-template-columns: 46% 54%; }
  .brand-panel { padding: 42px 38px; }
  .brand-copy { margin-top: 120px; }
  .form-panel { padding: 58px 44px; }
}
@media (max-width: 900px) {
  .login-page {
    place-items: start center;
    padding: 18px;
  }
  .login-shell {
    width: min(720px, 100%);
    min-height: auto;
    grid-template-columns: 1fr;
    border-radius: 26px;
  }
  .brand-panel {
    display: block;
    min-height: 500px;
    padding: 38px 42px 46px;
    background-position: center 30%;
      background:
    linear-gradient(145deg, rgba(5, 30, 94, .93), rgba(17, 92, 222, .88)),
    url("assets/denai-background.png") center left/cover no-repeat;

  }
  .brand-panel::after {
    background: linear-gradient(180deg, rgba(3, 20, 69, .04) 20%, rgba(3, 20, 69, .68) 100%);
  }
  .brand-logos { gap: 18px; }
  .nec-logo { width: 165px; }
  .denai-logo { width: 135px; }
  .brand-copy {
    margin-top: 185px;
    max-width: 520px;
  }
  .brand-copy h1 {
    max-width: 470px;
    font-size: clamp(40px, 7vw, 58px);
  }
  .brand-copy p { max-width: 500px; }
  .brand-orb { right: -115px; bottom: -145px; }
  .form-panel {
    min-height: auto;
    padding: 78px 48px 52px;
  }
  .mobile-logo-row { display: none; }
}
@media (max-width: 620px) {
  .login-page {
    padding: 10px;
    background: #eaf0f8;
  }
  .login-shell {
    border-radius: 22px;
  }
  .brand-panel {
    min-height: 430px;
    padding: 28px 24px 34px;
    background-position: 62% center;
      background:
    linear-gradient(145deg, rgba(5, 30, 94, .93), rgba(17, 92, 222, .88)),
    url("assets/denai-background.png") center left/cover no-repeat;

  }
  .brand-logos { gap: 12px; }
  .nec-logo { width: 145px; max-width: 48%; }
  .denai-logo { width: 115px; max-width: 38%; }
  .brand-copy {
    margin-top: 155px;
    max-width: 100%;
  }
  .eyebrow { font-size: 10px; letter-spacing: .14em; }
  .brand-copy h1 {
    margin: 15px 0 14px;
    font-size: clamp(34px, 11vw, 48px);
    line-height: 1.02;
  }
  .brand-copy p {
    font-size: 14px;
    line-height: 1.7;
  }
  .brand-orb {
    right: -145px;
    bottom: -175px;
    width: 310px;
  }
  .form-panel {
    padding: 72px 24px 38px;
  }
  .back-link { top: 25px; right: 24px; }
  .form-wrap h2 { font-size: 38px; }
  .form-intro { margin-bottom: 30px; }
}
@media (max-width: 420px) {
  .login-page { padding: 0; }
  .login-shell {
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .brand-panel {
    min-height: 400px;
    padding: 24px 20px 30px;
    background-position: 65% center;
      background:
    linear-gradient(145deg, rgba(5, 30, 94, .93), rgba(17, 92, 222, .88)),
    url("assets/denai-background.png") center left/cover no-repeat;

  }
  .brand-copy { margin-top: 145px; }
  .brand-copy h1 { font-size: 38px; }
  .brand-copy p { font-size: 13px; }
  .form-panel { padding: 68px 20px 30px; }
  .back-link { top: 23px; right: 20px; }
  .label-row { gap: 10px; }
  .label-row a { font-size: 11px; }
  .input-wrap input { height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
