.login-page { background: var(--ice-50); }
.login-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 90px; padding: 20px clamp(20px, 5vw, 56px); background: var(--white); border-bottom: 1px solid var(--line); }
.back-link { display: inline-flex; align-items: center; gap: 9px; color: var(--slate-700); font-size: 14px; font-weight: 700; }
.back-link:hover { color: var(--blue-600); }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - 90px); }
.login-form-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 44px clamp(24px, 5vw, 80px) 24px; background: var(--white); }
.login-form-content { width: 100%; max-width: 410px; margin-block: auto; }
.login-symbol { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--ice-100); color: var(--blue-600); margin-bottom: 24px; }
.login-form-content .kicker { font-size: 11px; margin-bottom: 12px; letter-spacing: .14em; }
.login-form-content h1 { color: var(--navy-900); font-size: clamp(36px, 4vw, 52px); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 18px; }
.login-intro { color: #65748b; font-size: 15px; margin-bottom: 30px; max-width: 360px; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 13px; font-weight: 700; color: var(--navy-900); margin-bottom: 8px; }
.form-field input { width: 100%; height: 52px; padding: 0 15px; color: var(--navy-900); background: var(--white); border: 1px solid #cbd6e4; border-radius: 7px; font: inherit; font-size: 16px; transition: border-color 180ms ease, box-shadow 180ms ease; }
.form-field input::placeholder { color: #8895a7; font-size: 14px; }
.form-field input:focus { border-color: var(--blue-600); outline: 0; box-shadow: 0 0 0 3px rgba(45, 126, 216, .14); }
.password-field { position: relative; }
.password-field input { padding-right: 54px; }
.password-toggle { display: grid; place-items: center; position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; border-radius: 5px; color: #65748b; background: transparent; cursor: pointer; }
.password-toggle:hover { background: var(--ice-100); color: var(--blue-600); }
.password-toggle .eye-closed { display: none; }
.password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }
.login-submit { width: 100%; display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 52px; margin-top: 28px; border: 0; border-radius: 7px; background: #2166b3; color: var(--white); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 180ms ease; }
.login-submit:hover { background: #1b5597; }
.login-submit:disabled { cursor: wait; opacity: .75; }
.preview-note { color: #69788b; font-size: 12px; line-height: 1.6; margin: 18px 0 0; }
.preview-note span { color: var(--navy-900); font-weight: 700; }
.login-status { margin: 0; }
.login-status:not(:empty) { margin: 18px 0 0; padding: 13px 15px; font-size: 13px; color: var(--navy-900); background: var(--ice-100); border-left: 3px solid var(--blue-600); border-radius: 4px; }
.login-status[data-state="error"] { color: #9e283b; background: #fff0f2; border-left-color: #bb3449; }
.login-footer { padding-top: 42px; text-align: center; font-size: 11px; color: #65748b; }
.login-visual { position: relative; display: flex; min-height: 640px; color: white; background: linear-gradient(180deg, rgba(5,17,44,.35), rgba(5,17,44,.86) 72%, rgba(5,17,44,.96)), url("../assets/p02-hero.jpg") center/cover; }
.login-visual-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; width: 100%; padding: clamp(32px, 5vw, 72px); }
.hub-label { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 28px; font-size: 10px; font-weight: 700; letter-spacing: .13em; color: #e1efff; }
.hub-label>span { width: 6px; height: 6px; background: #76cde5; border-radius: 50%; }
.login-visual h2 { font-size: clamp(38px, 4.8vw, 66px); line-height: 1.05; letter-spacing: -.025em; margin-bottom: 22px; }
.login-visual h2 span { color: var(--sky-200); }
.login-visual p { max-width: 310px; font-size: 16px; color: #d7e3f0; }
.visual-footer { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 65px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.24); font-size: 9px; letter-spacing: .1em; color: #c1d2e6; }
@media (max-width: 800px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-form-panel { min-height: calc(100svh - 90px); padding-top: 40px; }
}
@media (max-width: 480px) {
  .login-header { padding-inline: 16px; gap: 12px; }
  .login-header .brand-tagline { font-size: 8px; }
  .back-link { font-size: 12px; gap: 5px; }
  .back-link svg { width: 15px; }
  .login-form-panel { padding-inline: 24px; }
}

/* Profile access stays over the current page. */
html:has(.login-dialog) { scrollbar-gutter: stable; }
body.modal-open { overflow: hidden; }
.login-dialog {
  position: fixed;
  inset: 0;
  width: min(460px, calc(100% - 32px));
  height: fit-content;
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 36px 32px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(214, 226, 239, .8);
  border-radius: 18px;
  color: var(--slate-700);
  background: var(--white);
  box-shadow: 0 28px 90px rgba(5, 17, 44, .3);
}
.login-dialog::backdrop {
  background: rgba(5, 17, 44, .56);
  backdrop-filter: blur(4px);
}
.login-dialog-content { min-width: 0; }
.login-dialog .login-symbol { margin-bottom: 20px; }
.login-dialog .kicker { font-size: 11px; margin-bottom: 10px; letter-spacing: .14em; }
.login-dialog h2 {
  margin: 0 0 14px;
  color: var(--navy-900);
  font-size: clamp(28px, 5vw, 34px);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.login-dialog .login-intro { margin-bottom: 24px; }
.login-dialog .login-submit { margin-top: 24px; }
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--slate-700);
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}
.dialog-close:hover { color: var(--navy-900); background: var(--ice-100); }
.dialog-close:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; }
@media (max-width: 480px) {
  .login-dialog { padding: 24px; }
}
