/* Login shell: header, content frame and footer share one responsive layout. */
.login-page {
  min-height: 100dvh;
  margin: 0;
  box-sizing: border-box;
  padding: clamp(12px, 2.5vh, 24px);
  overflow: hidden;
  background: #e4e4e7;
}

.login-shell {
  width: min(1180px, 100%);
  height: calc(100dvh - clamp(24px, 5vh, 48px));
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-rows: 64px minmax(0, 680px) 48px;
  align-content: center;
}

.login-page .login-brand,
.login-page .login-back {
  z-index: 1;
  width: 80%;
  box-sizing: border-box;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #18181b;
  text-decoration: none;
  box-shadow: 0 9px 22px rgba(24, 24, 27, .10);
}

.login-page .login-brand {
  position: static;
  top: auto;
  left: auto;
  height: 64px;
  gap: 12px;
  padding: 8px 24px;
  border: 1px solid #d4d4d8;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
}

.login-page .login-brand > span:last-child { text-align: left; }
.login-page .login-brand .brand-mark { flex: 0 0 48px; }
.login-page .login-brand strong { display: block; font-size: 15px; line-height: 1.1; }
.login-page .login-brand small {
  display: block;
  margin-top: 3px;
  color: #71717a;
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.login-page .login-layout {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  overflow: hidden;
  border: 1px solid #d4d4d8;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(24, 24, 27, .14);
}

.login-page .login-visual {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #d4d4d8;
}

.login-page .login-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
}

.login-page .login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(24,24,27,0) 48%, rgba(24,24,27,.68));
}

.login-page .login-visual-copy {
  position: absolute;
  z-index: 1;
  right: 38px;
  bottom: 34px;
  left: 38px;
  color: #fff;
}

.login-page .login-visual-copy p {
  max-width: 430px;
  margin: 0 0 16px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.login-page .login-visual-copy span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.login-page .login-panel {
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 42px clamp(34px, 5vw, 72px);
  background: #fff;
}

.login-page .login-panel .auth-heading { margin: 0 0 26px; }
.login-page .login-panel .auth-heading h1 {
  margin: 0;
  color: #18181b;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.055em;
}
.login-page .login-panel .auth-heading > p:last-child {
  max-width: 330px;
  color: #71717a;
  line-height: 1.55;
}
.login-page .login-panel form { display: grid; gap: 7px; }
.login-page .login-panel label {
  margin-top: 8px;
  color: #3f3f46;
  font-size: 12px;
  font-weight: 800;
}
.login-page .login-panel input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d4d4d8;
  border-radius: 9px;
  background: #fafafa;
  color: #18181b;
  font: inherit;
}
.login-page .login-panel input:focus {
  outline: 0;
  border-color: #12805e;
  box-shadow: 0 0 0 3px #ddf4ea;
}
.login-page .login-panel button {
  margin-top: 14px;
  padding: 13px;
  border: 0;
  border-radius: 9px;
  background: #12805e;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.login-page .login-panel button:hover { background: #0b664a; }

.login-page .login-back {
  position: static;
  right: auto;
  bottom: auto;
  left: auto;
  align-self: stretch;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid #d4d4d8;
  border-top: 0;
  border-radius: 0 0 14px 14px;
  color: #71717a;
  font-size: 13px;
  white-space: nowrap;
  transform: none;
}
.login-page .login-back:hover { color: #12805e; }

@media (max-width: 820px) {
  .login-page { min-height: 100vh; padding: 0; overflow: auto; }
  .login-shell { width: 100%; height: auto; min-height: 100vh; display: block; }
  .login-page .login-brand { width: calc(100% - 32px); margin: 0 auto; border-top: 0; }
  .login-page .login-layout {
    min-height: 0;
    grid-template-columns: 1fr;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
  .login-page .login-visual { height: 36vh; min-height: 250px; }
  .login-page .login-panel { min-height: 64vh; padding: 38px 28px 48px; justify-content: flex-start; }
  .login-page .login-panel .auth-heading { margin: 48px 0 25px; }
  .login-page .login-back { width: calc(100% - 64px); margin: 0 auto; }
}
