.screen {
  background-color: transparent;
  display: block;
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  font-size: initial;
}

.screen .div#logicView {
  width: 430px;
  height: 932px;
  position: absolute;
  overflow: hidden;

  background-image: url(../img/background.png);
  background-size: cover;
  background-position: 50% 50%;

  border-radius: 28px;
  overflow: hidden;
  border: 1px solid #cfd8e3;
}

:root {
  --login-header-h: 270px;
  --login-after-header-gap: 14px;
  --login-field-gap: 18px;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--login-header-h);
  overflow: hidden;
}

.login-header {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lead {
  position: absolute;
  top: calc(var(--login-header-h) + var(--login-after-header-gap));
  left: 8%;
  width: 84%;
  text-align: center;
  color: rgba(112, 112, 112, 0.8);
  font-size: 14px;
  line-height: 1.35;
  margin: 0;
}

.field {
  position: absolute;
  width: 75.6%;
  height: 52px;
  left: 11.9%;
  background-color: rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  border: 1px solid var(--al-qz-5o);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.field-email {
  top: calc(var(--login-header-h) + var(--login-after-header-gap) + 52px);
}

.field-pass {
  top: calc(
    var(--login-header-h) + var(--login-after-header-gap) + 52px + 52px + var(--login-field-gap)
  );
}

.field-input {
  position: absolute;
  height: 100%;
  width: calc(100% - 120px);
  top: 0;
  left: 48px;
  border: none;
  background: transparent;
  outline: none;

  font-family: "Rounded M+ 1c", "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  color: var(--zv-jk-3t);
}

.field-input:focus-visible {
  outline: 2px solid rgba(45, 125, 246, 0.35);
  outline-offset: -2px;
  border-radius: 10px;
}

.field-icon-left {
  position: absolute;
  width: 22px;
  height: 22px;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  object-fit: contain;
  opacity: 0.9;
}

.showpass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  color: #6ea2c8;
  font-size: 13px;
}

.showpass input {
  width: 16px;
  height: 16px;
}

.error {
  position: absolute;
  top: calc(
    var(--login-header-h) + var(--login-after-header-gap) + 52px + 52px + var(--login-field-gap) + 66px
  );
  left: 8%;
  width: 84%;
  min-height: 20px;
  text-align: center;
  color: #d9534f;
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

.btn-login {
  position: absolute;
  left: 15%;
  top: calc(
    var(--login-header-h)
    + var(--login-after-header-gap)
    + 52px + 52px
    + var(--login-field-gap)
    + 98px
  );
  width: 70%;
  height: 68px;
  border-radius: 18px;

  border: none;
  cursor: pointer;

  font-family: "Rounded M+ 1c", "Noto Sans JP", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #fff;

  background: linear-gradient(180deg, #5aa7ff 0%, #2d7df6 100%);
  box-shadow: 0 16px 30px rgba(45, 125, 246, 0.35);

  transition: transform 0.08s ease, filter 0.15s ease, opacity 0.15s ease;
}

.btn-login:hover {
  filter: brightness(1.03);
}

.btn-login:active {
  transform: translateY(2px) scale(0.99);
  filter: brightness(0.96);
}

.btn-login:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  filter: grayscale(0.15);
  transform: none;
}

.btn-login:focus-visible,
.google-login-button:focus-visible,
.linklike:focus-visible,
.bottom-link:focus-visible,
.modal-close-button:focus-visible {
  outline: 3px solid rgba(45, 125, 246, 0.35);
  outline-offset: 2px;
}

.links {
  position: absolute;
  top: calc(
    var(--login-header-h) + var(--login-after-header-gap) + 52px + 52px + var(--login-field-gap) + 180px
  );
  left: 8%;
  width: 84%;
  text-align: center;
}

.linklike {
  color: #6ea2c8;
  text-decoration: underline;
  font-size: 16px;
}

.divider {
  position: absolute;
  top: calc(
    var(--login-header-h) + var(--login-after-header-gap) + 52px + 52px + var(--login-field-gap) + 214px
  );
  left: 8%;
  width: 84%;
  text-align: center;
  color: rgba(112, 112, 112, 0.8);
  font-size: 14px;
}

.divider span {
  background: rgba(255, 255, 255, 0.6);
  padding: 0 10px;
  border-radius: 12px;
}

.google-wrap {
  position: absolute;
  top: calc(
    var(--login-header-h)
    + var(--login-after-header-gap)
    + 52px + 52px
    + var(--login-field-gap)
    + 250px
  );
  left: 8%;
  width: 84%;
  display: flex;
  justify-content: center;
}

.google-login-button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 84%;
  height: 64px;
  border-radius: 16px;

  background: linear-gradient(180deg, #4f8df7 0%, #2f6fe8 100%);
  color: #fff;
  text-decoration: none;

  font-family: "Rounded M+ 1c", "Noto Sans JP", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;

  box-shadow: 0 14px 26px rgba(47, 111, 232, 0.32);
  transition: transform 0.08s ease, filter 0.15s ease;
}

.google-login-button:hover {
  filter: brightness(1.03);
}

.google-login-button:active {
  transform: translateY(2px) scale(0.99);
  filter: brightness(0.96);
}

.bottom {
  position: absolute;
  top: calc(
    var(--login-header-h) + var(--login-after-header-gap) + 52px + 52px + var(--login-field-gap) + 332px
  );
  left: 8%;
  width: 84%;
  text-align: center;
}

.bottom-text {
  color: var(--zv-jk-3t);
  font-size: 18px;
}

.bottom-link {
  display: inline-block;
  margin-top: 6px;
  color: #6ea2c8;
  text-decoration: underline;
  font-size: 20px;
}

/* モーダル */
.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
}

.modal-content {
  width: min(360px, calc(100vw - 32px));
  background: #fff;
  border-radius: 16px;
  padding: 20px 18px 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  text-align: left;
}

.modal-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: #334155;
}

.modal-message {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  white-space: pre-wrap;
  word-break: break-word;
}

.modal-footer {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.modal-close-button {
  min-width: 120px;
  min-height: 44px;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #5aa7ff 0%, #2d7df6 100%);
  color: #fff;
  font-family: "Rounded M+ 1c", "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.modal-close-button:active {
  transform: translateY(1px);
}