* { box-sizing: border-box; }

:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #f5f7fa;
  background: #000;
  --blue: #4778c5;
  --blue-hover: #5687d2;
  --field: #111315;
  --border: #45484d;
  --muted: #9a9da3;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: #000;
}

body {
  min-height: 100vh;
  min-height: 100svh;
}

.login-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 20px;
  background: #000;
}

.login-card {
  width: min(100%, 440px);
  text-align: center;
}

.medical-mark {
  width: 92px;
  height: 112px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.medical-mark svg {
  width: 78px;
  height: 100px;
  fill: none;
  stroke: #f5f5f5;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(255,255,255,.10));
}

h1 {
  margin: 0 0 52px;
  color: #fff;
  font-size: clamp(29px, 7vw, 40px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -1.1px;
}

form { text-align: left; }

label {
  display: block;
  margin: 0 0 9px;
  color: #c9cbd0;
  font-size: 14px;
  font-weight: 500;
}

.input-wrap {
  position: relative;
  margin-bottom: 22px;
}

.input-wrap input {
  width: 100%;
  height: 58px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--field);
  color: #f5f5f5;
  outline: none;
  padding: 0 50px 0 48px;
  font-size: 16px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.input-wrap input::placeholder { color: #8d9096; }

.input-wrap input:focus {
  border-color: #68707b;
  box-shadow: 0 0 0 3px rgba(71,120,197,.12);
  background: #131518;
}

.field-icon {
  position: absolute;
  z-index: 1;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: #9a9da3;
  font-size: 21px;
  pointer-events: none;
}

.lock-icon { font-size: 18px; }

.eye-button {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  color: #9a9da3;
  background: transparent;
  cursor: pointer;
  font-size: 17px;
}

.eye-button:hover {
  background: #1b1d20;
  color: #fff;
}

.forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -7px;
  margin-bottom: 22px;
}

.forgot {
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: #6d9de7;
  font-size: 14px;
  cursor: pointer;
}

.forgot:hover {
  color: #8ab4f3;
  text-decoration: underline;
}

.signin-button {
  width: 100%;
  height: 58px;
  border: 1px solid #5a8bd7;
  border-radius: 13px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 9px 24px rgba(54, 96, 160, .22);
  transition: background .18s ease, transform .12s ease;
}

.signin-button:hover { background: var(--blue-hover); }
.signin-button:active { transform: translateY(1px); }
.signin-button:disabled { opacity: .65; cursor: wait; }

.status {
  min-height: 22px;
  margin: 15px 0 0;
  text-align: center;
  color: #a8abb1;
  font-size: 13px;
}

@media (max-width: 480px) {
  .login-page {
    align-items: flex-start;
    padding: 54px 20px 30px;
  }

  .medical-mark {
    margin-bottom: 19px;
    transform: scale(.9);
  }

  h1 {
    margin-bottom: 44px;
    font-size: 29px;
  }

  .input-wrap input,
  .signin-button {
    height: 55px;
  }
}
