* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
}

html {
  min-height: 100%;
  background: #050606;
}

body {
  min-height: 100vh;
  margin: 0;
  color: #f5f5f7;
  background:
    linear-gradient(180deg, rgba(38, 39, 41, 0.98) 0%, rgba(18, 20, 22, 0.98) 35%, #050606 76%, #000 100%);
}

.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 25px 4.1%;
}

.site-logo {
  position: fixed;
  top: 20px;
  left: 4.1%;
  z-index: 10;
  display: block;
  width: 50px;
  height: auto;
  border-radius: 12px;
}

.register-link {
  color: #f5f5f7;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
}

.register-link:hover,
.help-link a:hover {
  text-decoration: underline;
}

.main-content {
  width: min(680px, calc(100% - 36px));
  margin: 62px auto 52px;
}

h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.8px;
}

.intro {
  margin: 12px 0 34px;
  text-align: center;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.5;
}

.login-panel {
  padding: 34px 33px 31px;
  border-radius: 11px;
  background: rgba(43, 45, 47, 0.58);
}

label {
  display: block;
  margin-bottom: 5px;
  color: #d7d7d9;
  font-size: 18px;
  font-weight: 700;
}

input {
  display: block;
  width: 100%;
  height: 64px;
  padding: 12px 14px;
  border: 1px solid #a2a2a4;
  border-radius: 5px;
  outline: none;
  color: #fff;
  background: rgba(10, 11, 12, 0.2);
  font: inherit;
  font-size: 16px;
}

input:focus {
  border-color: #f5f5f7;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

#continueButton {
  margin-top: 14px;
}

.field-help {
  margin: 7px 0 19px;
  color: #c1c1c4;
  font-size: 12px;
}

button {
  min-width: 172px;
  min-height: 50px;
  padding: 12px 24px;
  border: 0;
  border-radius: 10px;
  color: #090909;
  background: #dedede;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
}

button:hover {
  background: #fff;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #67baff;
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.back-button {
  display: block;
  min-width: 0;
  min-height: auto;
  margin-top: 16px;
  padding: 7px 0;
  color: #68baff;
  background: transparent;
  font-size: 14px;
}

.back-button:hover {
  color: #fff;
  background: transparent;
  text-decoration: underline;
}

.status {
  margin: 16px 0 0;
  line-height: 1.45;
  font-size: 14px;
}

.status:empty {
  display: none;
}

.account-info {
  margin-top: 24px;
}

.account-info h2 {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.4;
}

.account-info p {
  margin: 4px 0;
  font-size: 16px;
  line-height: 1.5;
}

.help-link {
  margin: 36px 0 0;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.help-link a {
  color: #68baff;
  text-decoration: none;
}

.notice {
  margin: 24px 0 0;
  color: #aaa;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 600px) {
  .topbar {
    padding: 20px;
  }

  .site-logo {
    top: 16px;
    left: 20px;
    width: 50px;
  }

  .register-link {
    font-size: 15px;
  }

  .main-content {
    margin-top: 34px;
  }

  .intro {
    margin-bottom: 24px;
  }

  .login-panel {
    padding: 24px 18px;
  }

  label {
    font-size: 16px;
  }

  input {
    height: 52px;
  }

  button {
    width: 100%;
    min-width: 0;
  }

  .account-info p {
    font-size: 15px;
  }

  .help-link {
    margin-top: 28px;
    font-size: 16px;
  }
}
