:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #f6f8f5;
  color: #182b25;
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: clamp(1rem, 4vw, 3rem);
  display: grid;
  place-items: center;
}

.entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(100%, 840px);
  overflow: hidden;
  background: white;
  border: 1px solid #d9e4db;
  border-radius: 22px;
  box-shadow: 0 24px 65px -42px #1c4835;
}

.identity {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5.5rem;
  padding: clamp(1.6rem, 5vw, 3.2rem);
  background: radial-gradient(ellipse at right bottom, #315943 0, #183a2d 58%, #12251f 100%);
  color: #f4fbf4;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.92rem;
  font-weight: 670;
  letter-spacing: 0.08em;
}

.brand img { flex: 0 0 auto; border-radius: 11px; }
.identity h1, .sign-in h2, .identity p, .sign-in p { margin: 0; }
.identity h1 { font-size: clamp(2.7rem, 6vw, 4rem); letter-spacing: -0.045em; line-height: 1.16; }
.identity p { margin-top: 0.6rem; color: #d1e5d9; }

.contours {
  position: absolute;
  z-index: -1;
  right: -8.5rem;
  top: -7rem;
  color: #baf0ad;
  opacity: 0.25;
  pointer-events: none;
}

.sign-in { padding: clamp(1.6rem, 5vw, 3.2rem); }
.sign-in h2 { font-size: clamp(1.55rem, 4vw, 2rem); letter-spacing: -0.04em; line-height: 1.24; }
.sign-in-heading p { margin-top: 0.6rem; color: #4d655b; }
.sign-in-heading { margin-bottom: 1.6rem; }

.field { display: grid; gap: 0.5rem; margin-bottom: 1rem; }
.field label { font-weight: 650; font-size: 0.94rem; }
.field input, .sign-in button { font: inherit; }

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0.62rem 0.8rem;
  border: 1px solid #bdcec1;
  border-radius: 8px;
  background: #fbfdfb;
  color: #182b25;
}

.field input:focus, button:focus-visible { outline: 2px solid #367c52; outline-offset: 2px; }

.password-field { position: relative; }
.password-field input { padding-right: 4.3rem; }
.toggle-password {
  position: absolute;
  right: 0.27rem;
  top: 0.25rem;
  min-width: 3.2rem;
  min-height: 40px;
  padding: 0 0.5rem;
  border: 0;
  border-radius: 6px;
  color: #2a6043;
  background: transparent;
  cursor: pointer;
}

.toggle-password:hover { background: #e9f1ea; }
.toggle-password[hidden] { display: none; }

.sign-in .sign-in-button {
  width: 100%;
  min-height: 48px;
  margin-top: 0.25rem;
  padding: 0.62rem 1rem;
  border: 1px solid #21583c;
  border-radius: 8px;
  background: #21583c;
  color: white;
  font-weight: 680;
  cursor: pointer;
}

.sign-in-button:hover:not(:disabled) { background: #194930; }
.sign-in-button:disabled { cursor: default; opacity: 0.64; }

.sign-in .login-status { min-height: 1.55rem; margin-top: 0.7rem; font-size: 0.89rem; color: #4d655b; }
.sign-in .login-status.error { color: #982e28; }

@media (max-width: 650px) {
  .entry { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
  .identity { gap: 1.4rem; }
  .identity h1 { font-size: 2.5rem; }
  .sign-in-heading { margin-bottom: 1.3rem; }
}
