html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Segoe UI",
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    sans-serif;
}

body.login-body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  background: #222;
}

/* 背景写真専用レイヤー */
body.login-body::before {
  content: "";
  position: fixed;

  /* blurで端に隙間が出ないよう少し広げる */
  inset: -25px;

  background-image:
    linear-gradient(
      rgba(18, 30, 40, 0.16),
      rgba(18, 30, 40, 0.16)
    ),
    url("https://hisaka.info/assets/images/top/f-slide3@2x.jpg");

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  filter: blur(9px);
  transform: scale(1.035);

  z-index: -2;
}

/* 少しだけ落ち着かせるオーバーレイ */
body.login-body::after {
  content: "";
  position: fixed;
  inset: 0;

  background: rgba(15, 24, 32, 0.08);

  z-index: -1;
  pointer-events: none;
}

.login-page {
  position: relative;
  z-index: 1;

  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;
  box-sizing: border-box;
}

.login-panel {
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.login-panel__inner {
  padding: 20px 16px;
}

.login-header {
  margin-bottom: 28px;
}

/* 法人ロゴ */
.login-header__logo {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 90px;

  margin: 0 auto 24px;

  object-fit: contain;

  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.18));
}

.login-header__title {
  margin: 0;

  font-size: clamp(28px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.35;

  color: rgba(255, 255, 255, 0.96);

  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.25),
    0 1px 2px rgba(0, 0, 0, 0.18);

  white-space: nowrap;
}

.login-form {
  width: 100%;
  max-width: 320px;
  margin: 28px auto 0;
}

.login-form__group {
  position: relative;
  margin-bottom: 10px;
}

.login-input {
  width: 100%;
  height: 54px;
  box-sizing: border-box;

  padding: 0 16px;

  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;

  background: rgba(255, 255, 255, 0.76);
  color: #3b3b3b;

  font-size: 17px;

  outline: none;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 1px 1px rgba(255, 255, 255, 0.18) inset,
    0 2px 8px rgba(0, 0, 0, 0.06);
}

.login-input::placeholder {
  color: rgba(60, 60, 60, 0.55);
}

.login-input:focus {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 255, 255, 0.8);

  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.16),
    0 2px 8px rgba(0, 0, 0, 0.08);
}

.login-form__group--password .login-input {
  padding-right: 60px;
}

.login-submit {
  position: absolute;

  right: 10px;
  top: 50%;

  transform: translateY(-50%);

  width: 34px;
  height: 34px;

  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 50%;

  background: rgba(125, 125, 125, 0.26);
  color: white;

  font-size: 18px;
  line-height: 1;

  cursor: pointer;
}

.login-submit:hover {
  background: rgba(100, 100, 100, 0.42);
}

.login-form__row {
  margin-top: 12px;
  text-align: left;
}

.login-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: rgba(255, 255, 255, 0.96);

  font-size: 15px;

  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.3);
}

.login-checkbox input {
  width: 16px;
  height: 16px;
}

.login-links {
  margin-top: 62px;
}

.login-link {
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;

  font-size: 15px;

  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.35);
}

.login-link:hover {
  text-decoration: underline;
}

.login-error {
  min-height: 24px;
  margin-top: 14px;

  color: #ffe0e0;
  font-size: 14px;

  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  border: 0;
}

/* タブレット・スマートフォン */
@media (max-width: 600px) {
  .login-page {
    padding: 24px 20px;
  }

  .login-panel {
    max-width: 100%;
  }

  .login-panel__inner {
    padding: 10px 0;
  }

  .login-header__logo {
    max-width: 180px;
    max-height: 74px;
    margin-bottom: 20px;
  }

  .login-header__title {
    font-size: 28px;
    white-space: normal;
    word-break: keep-all;
  }

  .login-form {
    max-width: 340px;
  }

  .login-input {
    height: 54px;
    font-size: 16px;
  }
}

/* 小型スマートフォン */
@media (max-width: 380px) {
  .login-page {
    padding: 20px 16px;
  }

  .login-header__logo {
    max-width: 155px;
  }

  .login-header__title {
    font-size: 25px;
  }

  .login-links {
    margin-top: 48px;
  }
}