* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
}
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #1b2433;
  background: #fff;
  font-size: 14px;
  line-height: 1.45;
}
button, input { font-family: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.login-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100%;
  background: #fff;
}
.login-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: #fff;
}
.login-form {
  width: 100%;
  max-width: 420px;
}
.login-form h1 {
  margin: 0 0 28px;
  font-size: 34px;
  font-weight: 700;
  color: #1b2a4a;
  letter-spacing: -0.03em;
}
.login-field { margin-bottom: 18px; }
.login-field-box { position: relative; }
.login-field input {
  width: 100%;
  height: 56px;
  border: 1px solid #c5cad6;
  border-radius: 4px;
  padding: 18px 14px 6px 14px;
  font-size: 16px;
  color: #1b2433;
  background: #fff;
  outline: none;
}
.login-field input:focus {
  border-color: #3d6bff;
  box-shadow: inset 0 0 0 1px #3d6bff;
}
.login-field label {
  position: absolute;
  left: 10px;
  top: -8px;
  background: #fff;
  padding: 0 6px;
  font-size: 12px;
  color: #7b8496;
  pointer-events: none;
}
.login-err {
  color: #ef4b4b;
  font-size: 12px;
  margin-top: 6px;
}
.login-info {
  color: #1b8a4a;
  font-size: 13px;
  margin: 0 0 12px;
}
.login-form .muted {
  color: #6b7385;
  margin: 0 0 18px;
}
.login-submit {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: 6px;
  background: #3d6bff;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.login-submit:hover { background: #2f5cf0; }
.login-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
}
.login-links a {
  color: #3d6bff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.login-links a:hover { text-decoration: underline; }
.login-hero {
  position: relative;
  background: #e8ecf3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px 24px 96px;
}
.login-hero-art {
  width: min(92%, 720px);
  height: auto;
}
.login-brand {
  position: absolute;
  left: 36px;
  bottom: 28px;
}
.login-brand-name {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #1b2a4a;
  line-height: 1;
}
.muted { color: #6b7385; }
@media (max-width: 860px) {
  html, body {
    height: auto;
    min-height: 100%;
    min-height: 100dvh;
    max-width: 100%;
    overflow-x: clip;
  }
  body { overflow-x: clip; }
  .login-screen {
    grid-template-columns: 1fr;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
  }
  .login-hero { display: none; }
  .login-form::before {
    content: "ДокИР";
    display: block;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.04em;
    color: #1e3a8a;
    margin: 0 0 18px;
  }
  .login-pane {
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: calc(24px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  }
  .login-form {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .login-form h1 { font-size: 28px; margin-bottom: 18px; }
  .login-field,
  .login-field-box { min-width: 0; max-width: 100%; }
  .login-field input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 16px;
  }
  .login-submit { min-height: 48px; width: 100%; }
}
