:root {
  --navy: #102447;
  --navy-deep: #071a3c;
  --teal: #008b7b;
  --muted: #71809a;
  --line: #bdc9dc;
  --soft: #f7f9fc;
  --white: #fff;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }

body {
  background: var(--white);
  color: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.login-layout {
  display: grid;
  grid-template-columns: 47% 53%;
  min-height: 100vh;
}

.login-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy-deep);
  color: #16aa9a;
}

.login-logo {
  position: absolute;
  top: 27%;
  left: 17%;
  z-index: 1;
  color: var(--white);
  font-size: 78px;
  font-weight: 800;
  letter-spacing: -4px;
  line-height: 1;
  text-decoration: none;
}

.login-logo span { color: #18ad9c; }

.care-line {
  position: absolute;
  right: -1px;
  bottom: 26%;
  width: 100%;
  color: #13ae9d;
  opacity: .95;
}

.login-content {
  display: grid;
  place-items: center;
  padding: 64px;
}

.login-form-wrap {
  width: min(100%, 568px);
  margin-top: -60px;
  transform: translateX(27px);
}

.login-form-wrap h1 {
  margin: 0;
  color: var(--navy);
  font-size: 50px;
  line-height: 1.08;
  letter-spacing: -1.7px;
}

.login-form-wrap > p {
  margin: 17px 0 44px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.login-error {
  margin: 0 0 22px;
  padding: 13px 15px;
  border-left: 4px solid #c54035;
  border-radius: 5px;
  background: #fff0ee;
  color: #9e2d25;
  font-size: 14px;
  font-weight: 700;
}

.login-form { display: grid; gap: 26px; }

.login-form label {
  display: grid;
  gap: 10px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 750;
}

.login-input {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input > svg {
  position: absolute;
  left: 21px;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #7890b3;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.login-input input {
  width: 100%;
  height: 70px;
  padding: 0 58px 0 63px;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  outline: none;
  background: var(--white);
  color: var(--navy);
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  transition: border-color .18s, box-shadow .18s;
}

.login-input input::placeholder { color: #8a9bb6; }
.login-input input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px #008b7b18; }

.password-toggle {
  position: absolute;
  right: 13px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #365581;
  cursor: pointer;
}

.password-toggle:hover { background: var(--soft); }

.password-toggle svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-submit {
  height: 70px;
  margin-top: 8px;
  border: 1px solid var(--teal);
  border-radius: 7px;
  background: var(--teal);
  box-shadow: 0 8px 20px #008b7b20;
  color: #fff;
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: filter .18s, transform .18s;
}

.login-submit:hover { filter: brightness(.94); }
.login-submit:active { transform: translateY(1px); }

.login-submit:focus-visible,
.password-toggle:focus-visible,
.login-logo:focus-visible {
  outline: 3px solid #18ad9c;
  outline-offset: 3px;
}

.restricted-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 46px;
  color: #7c90af;
  font-size: 16px;
}

.restricted-note svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 850px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-brand { min-height: 210px; justify-content: flex-start; padding: 36px; }
  .login-logo { position: relative; top: auto; left: auto; margin: 0; font-size: 48px; letter-spacing: -2.5px; }
  .care-line { right: -10%; bottom: -35%; width: 75%; opacity: .55; }
  .login-content { place-items: start center; padding: 48px 24px; }
  .login-form-wrap { margin: 0; transform: none; }
  .login-form-wrap h1 { font-size: 38px; }
  .login-form-wrap > p { margin-bottom: 34px; font-size: 17px; }
}

@media (max-width: 480px) {
  .login-brand { min-height: 150px; }
  .login-logo { font-size: 40px; }
  .care-line { display: none; }
  .login-content { padding: 38px 18px; }
  .login-form-wrap h1 { font-size: 34px; }
  .login-input input, .login-submit { height: 60px; }
  .restricted-note { margin-top: 34px; font-size: 14px; }
}
