:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #0c2a47;
  color: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: hsl(209, 71%, 16%);
}

button,
input {
  font: inherit;
}

.page {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 42px 24px;
}

.form-card {
  width: 100%;
  max-width: 405px;
}

.brand {
  display: flex;
  align-items: center;
  margin-bottom: 63px;
}

.brand h1 {
  margin: 0;
  font-size: 35px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1;
}

.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  margin-right: 12px;
  object-fit: contain;
}

.field {
  margin-bottom: 45px;
}

.field label {
  display: block;
  margin-bottom: 28px;
  font-size: 14px;
  font-weight: 700;
}

.field input {
  display: block;
  width: 100%;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
}

.field input:focus {
  border-bottom-color: #f6a623;
  box-shadow: 0 1px 0 #f6a623;
}

.remember {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 5px 0 43px;
  cursor: pointer;
  font-size: 13px;
}

.remember input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #f6a623;
}

button {
  width: 100%;
  min-height: 57px;
  border: 1px solid #d99a29;
  border-radius: 7px;
  background: #918f8d;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

button:hover:not(:disabled) {
  background: #a09e9c;
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.status {
  min-height: 18px;
  margin: 13px 0 0;
  text-align: center;
  font-size: 13px;
}

.status.success {
  color: #7ee2a8;
}

.status.error {
  color: #ff9c9c;
}

.new-user {
  margin: 44px 0 0;
  text-align: center;
  font-size: 13px;
}

.new-user a {
  color: #f6a623;
  font-weight: 700;
  text-decoration: none;
}

.sorry-page {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 72px 28px 42px;
}

.sorry-card {
  width: 100%;
  max-width: 520px;
}

.sorry-card h1 {
  margin: 0 0 18px;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
}

.sorry-card p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.45;
}

.sorry-card a {
  color: #f6a623;
  font-size: 16px;
  text-decoration: none;
}

.otp-card .brand {
  margin-bottom: 36px;
}

.otp-rule {
  width: 100%;
  height: 1px;
  margin-bottom: 42px;
  background: rgba(255, 255, 255, 0.95);
}

.otp-field {
  margin-bottom: 28px;
}

.otp-field label {
  margin-bottom: 26px;
  text-align: center;
}

.otp-error {
  min-height: 18px;
  margin: 12px 0 0;
  color: #ff3b30;
  font-size: 13px;
  font-weight: 700;
}

.btn-orange {
  margin-bottom: 16px;
  border-color: #f08a12;
  background: #f08a12;
}

.btn-orange:hover:not(:disabled) {
  background: #f6a623;
}

@media (max-width: 520px) {
  .page {
    padding-top: 36px;
  }

  .form-card {
    max-width: 360px;
  }

  .brand {
    justify-content: center;
    margin-bottom: 54px;
  }

  .brand h1 {
    font-size: 30px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }
}
