/* Full-screen login (community.js showLogin): key visual on the left, form on the right; on phones the visual becomes a top band. */
dialog.login-screen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  color: #202437;
  overflow: auto;
  font-family:
    Inter, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP',
    'Yu Gothic', Meiryo, sans-serif;
}
dialog.login-screen[open] {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
}
dialog.login-screen::backdrop {
  background: #fff;
  backdrop-filter: none;
}
body:has(dialog.login-screen[open]) {
  overflow: hidden;
}
.login-visual {
  position: relative;
  min-height: 100%;
  background: #1b2140 url(./assets/artwork.jpg) center 30% / cover;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 48px;
}
.login-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #14183480 0%,
    #14183400 30%,
    #1418341a 55%,
    #141834e0 100%
  );
}
.login-visual > * {
  position: relative;
  z-index: 1;
}
.login-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 1.5px;
}
.login-brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-top: 4px;
  opacity: 0.8;
}
.login-brand .mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 3px 0 0;
  font-size: 26px;
  border-radius: 14px;
  background: #fff;
  color: #252b43;
}
.login-copy h2 {
  font-size: 44px;
  line-height: 1.35;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
  font-weight: 800;
}
.login-copy p {
  margin: 0 0 28px;
  color: #fff;
  font-size: 15px;
  line-height: 1.9;
  opacity: 0.92;
  text-shadow: 0 1px 12px #14183499;
  max-width: 30em;
}
.login-steps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}
.login-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 8px;
  border: 1px solid #ffffff40;
  border-radius: 999px;
  background: #ffffff24;
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 600;
}
.login-steps b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: #252b43;
  font-size: 12px;
}
.login-x {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff26;
  color: #fff;
  font-size: 18px;
}
.login-x:hover {
  background: #ffffff40;
}
.login-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 32px 7vw 28px;
}
.login-bar {
  display: flex;
  justify-content: flex-end;
}
.login-close {
  border: 0;
  background: none;
  padding: 8px 4px;
  font-weight: 600;
}
.login-close {
  color: #646e85;
}
.login-close:hover {
  background: none;
  text-decoration: underline;
}
.login-form {
  margin: auto 0;
  padding: 32px 0;
  width: 100%;
  max-width: 400px;
  align-self: center;
}
.login-form .eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--blue);
  font-weight: 700;
}
.login-form h1 {
  font-size: 30px;
  margin: 10px 0;
}
.login-lead {
  color: #646e85;
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 32px;
}
.login-field {
  display: block;
  margin-bottom: 18px;
}
.login-field > span:first-child {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4a5370;
  margin-bottom: 8px;
}
.login-field input {
  width: 100%;
  height: 52px;
  border: 1px solid #dfe2ee;
  border-radius: 14px;
  background: #f8f9fd;
  padding: 0 16px;
  font-size: 16px;
  color: #202437;
}
.login-field input:focus {
  border-color: var(--blue);
  background: #fff;
}
.login-pw {
  position: relative;
  display: block;
}
.login-pw input {
  padding-right: 72px;
}
.login-pw button {
  position: absolute;
  right: 8px;
  top: 8px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}
.login-pw button:hover {
  background: #f1f3ff;
}
.login-form .error {
  min-height: 20px;
  margin: 0 0 10px;
  font-size: 13.5px;
}
.login-submit {
  width: 100%;
  height: 54px;
  border-radius: 14px;
  font-size: 16px;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 24px -10px var(--blue);
}
.login-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  color: #9aa1b5;
}
.login-or::before,
.login-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.login-guest {
  width: 100%;
  height: 54px;
  border-radius: 14px;
  border-color: #cfd4f6;
  color: var(--blue);
  font-size: 16px;
  letter-spacing: 0.04em;
}
.login-guest:hover {
  border-color: var(--blue);
}
.login-note {
  margin: 20px 0 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.8;
  color: #737b93;
}
.login-foot {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: #9aa1b5;
}
@media (max-width: 820px) {
  dialog.login-screen[open] {
    display: block;
  }
  .login-visual {
    min-height: 272px;
    padding: 20px 20px 40px;
    background-position: center 18%;
  }
  .login-visual::after {
    background: linear-gradient(
      180deg,
      #14183480 0%,
      #14183426 30%,
      #141834e6 100%
    );
  }
  .login-x {
    display: grid;
    place-items: center;
  }
  .login-copy h2 {
    font-size: 26px;
    margin-bottom: 12px;
  }
  .login-copy p {
    display: none;
  }
  .login-steps li {
    font-size: 11.5px;
    padding: 5px 12px 5px 5px;
  }
  .login-steps b {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
  .login-panel {
    position: relative;
    min-height: 0;
    margin-top: -24px;
    padding: 0 20px 28px;
    border-radius: 24px 24px 0 0;
    background: #fff;
  }
  .login-bar {
    display: none;
  }
  .login-form {
    max-width: none;
    padding: 24px 0;
  }
  .login-form h1 {
    font-size: 24px;
  }
  .login-lead {
    margin-bottom: 24px;
  }
}
