.login-page {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.login-layout {
  height: 100%;
  display: flex;
  overflow: auto;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
}

.login-panel {
  width: min(100%, 380px);
  min-width: 0;
  margin: auto;
}

.product-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  object-fit: contain;
}

.product-brand strong { font-size: 0.95rem; }

.login-copy h1 {
  margin: 0;
  text-align: center;
  font-size: 1.75rem;
  line-height: 1.25;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.password-field { position: relative; }
.password-field input { padding-right: 64px; }

.password-toggle {
  position: absolute;
  right: 1px;
  top: 1px;
  min-width: 58px;
  min-height: 42px;
  padding: 0 8px;
  color: var(--accent-strong);
  background: transparent;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.login-form .form-message { min-height: 0; }
.login-form .form-message:empty { display: none; }
.login-button { width: 100%; min-height: 46px; }

.access-link {
  display: block;
  width: fit-content;
  margin: 18px auto 0;
  padding: 9px 0;
  color: var(--accent-strong);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  text-underline-offset: 4px;
}

@media (max-height: 560px) {
  .login-layout { padding-block: 12px; }
  .product-brand { margin-bottom: 16px; }
  .login-copy h1 { font-size: 1.4rem; }
  .login-form { margin-top: 16px; gap: 12px; }
  .access-link { margin-top: 8px; }
}
