/* Form layout only. Colors, typography, panels, and header are shared. */
.login-panel {
  width: 100%;
  max-width: 440px;
  margin: 36px auto 48px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.login-panel h2 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.login-panel label { display: block; margin-bottom: 8px; font-size: 13px; }
.login-panel input { width: 100%; border-radius: 2px; }
.login-panel button {
  padding: 12px;
  border: 1px solid #e1bd73;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}
.login-error { margin: 0; color: #f6c17b; font-size: 13px; }
@media (max-width: 650px) { .login-panel { margin-top: 24px; padding: 20px; } }

/* Majima delivers the welcome beside the login form. */
.login-scene {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 340px);
  align-items: center;
  gap: 48px;
  max-width: 828px;
  margin: 32px auto 48px;
}
.login-scene .login-panel { margin: 0; }
.majima-greeting { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.majima-greeting img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 440px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px #0008);
}
.majima-dialogue {
  position: relative;
  align-self: stretch;
  padding: 18px 22px;
  margin-bottom: 22px;
  background: #f5f0e7;
  color: #211a18;
  border: 2px solid #bd9a5b;
  border-radius: 3px;
  box-shadow: 0 10px 24px #0006;
}
.majima-dialogue::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 44%;
  width: 18px;
  height: 18px;
  background: #f5f0e7;
  border-right: 2px solid #bd9a5b;
  border-bottom: 2px solid #bd9a5b;
  transform: rotate(45deg);
}
.majima-dialogue p { margin: 0; }
.majima-dialogue .majima-speaker { color: var(--brand-red); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 7px; }
@media (max-width: 650px) {
  .login-scene { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
  .majima-greeting { order: -1; width: 100%; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 14px; }
  .majima-greeting img { grid-column: 1; grid-row: 1; width: 90px; max-height: 180px; }
  .majima-dialogue { grid-column: 2; grid-row: 1; align-self: center; padding: 14px; margin: 0; }
  .majima-dialogue::after { bottom: auto; left: -11px; top: 40%; border: 0; border-left: 2px solid #bd9a5b; border-bottom: 2px solid #bd9a5b; }
}

.login-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
}
.clan-pin {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px #0006);
}
@media (max-width: 650px) {
  .login-header { gap: 14px; }
  .clan-pin { width: 56px; height: 56px; }
}
