:root {
  --color-primary: #2576F9;
  --color-neutral-8: #595959;
  --color-neutral-default: #222326;
  --color-accent-default: #3172F5;
  --character-title-85: rgba(0, 0, 0, 0.85);
  input::-webkit-outer-spin-button,
  input::-webkit-inner-spin-button {
      /* display: none; <- Crashes Chrome on hover */
      -webkit-appearance: none;
      margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
  }

  input[type=number] {
      -moz-appearance:textfield; /* Firefox */
  }
}

html {
  font-family: Inter, Arial, sans-serif;
}

.container {
  height: 100%;
  padding: 0 20px;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  width: 200px;
  height: 75px;
  user-select: none;
}

@media screen and (max-height: 480px) {
  .logo {
    visibility: hidden;
  }
}

@media screen and (min-width: 800px) {
  .logo {
    top: 32px;
    left: 32px;
    width: 286px;
    height: 108px;
  }
}

.form {
  display: flex;
  width: 420px;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.signup {
  padding-top: 180px;
  padding-bottom: 24px;
}

.text-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;

  .heading {
    width: 100%;
    text-align: center;
    color: #222326;
    font-size: 36px;
    font-weight: bold;
    line-height: 46px;
    word-wrap: break-word;
    user-select: none;
    cursor: default;
  }

  .heading-instructions {
    width: 100%;
    text-align: center;
    font-size: 16px;
    max-width: 300px;
    font-weight: 400;
    line-height: 24px;
    word-wrap: break-word;
    user-select: none;
    cursor: default;
  }
}


@media screen and (min-width: 480px) {
  .form {
    padding-top: 0px;
  }
}

.sub-text {
  font-size: 14px;
  color: #595959;
}


.input-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.input-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subinput-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-item {
  width: 100%;
}

.form-input {
  width: 100%;
  padding: 8px 16px;
  font-size: 16px;
  line-height: 24px;
  background: rgba(23, 22, 25, 0.10);
  border: 1px solid transparent;
  border-radius: 8px;
  box-sizing: border-box;
}

.form-input:focus:not(.disabled) {
  outline: none !important;
  border: 1px solid var(--color-accent-default);
  background-color: white;
}

.form-input:focus:is(.disabled) {
  outline: none !important;
}

.submit-button {
  width: 100%;
  height: 2.5rem;
  padding: 8px 16px;
  background: rgba(37, 118, 249, 0.15);
  border: none;
  border-radius: 8px;
  color: #6BA4FF;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  cursor: pointer;
  user-select: none;
}

.submit-button:not(.disabled) {
  background-color: var(--color-primary);
  color: white;
}

.additional-info {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  cursor: default;
}

.additional-info__text {
  color: var(--color-neutral-default);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}

.form-link {
  color: var(--color-accent-default);
  text-decoration: none;
}

.form-link:hover {
  text-decoration: underline;
}

.loader {
  border: 2px solid #67a6ff;
  border-top: 2px solid #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin: auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.hint {
  padding-top: 6px;
  text-align: end;
  user-select: none;
}

.error {
  color: red;
  font-size: 12px;
  cursor: default;
  user-select: none;
}

.input-error {
  padding-top: 6px;
}

.password-wrapper {
  position: relative;
}

.icon {
  width: 16px;
  height: 16px;
  opacity: 0.3;
  user-select: none;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.method-divider {
  width: 100%;
  height: 1px;
  margin-top: 1rem;
  border-top: 1px solid rgba(17, 24, 39, 0.12);
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: center;
  color: rgba(17, 24, 39, 0.36);
  user-select: none;
  cursor: default;
}

.method-divider span {
  position: relative;
  top: -0.7rem;
  padding: 0 0.5rem;
  background: white;
}

.entry-methods {
  display: flex;
  gap: 0.6rem;
  padding: 1rem 0;
  user-select: none;
  cursor: default;
}

.entry-method-item {
  display: inline-block;
  padding: 0.8rem 2rem;
  text-decoration: none;
  background-color: rgba(17, 24, 39, 0.11);
  border-radius: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.entry-method-item:hover {
  background-color: rgba(17, 24, 39, 0.2);
}

@media screen and (max-width: 420px) {
  .entry-method-item {
    padding: 0.8rem 1.2rem;
  }
}

.footer {
  user-select: none;
}

.policy-block {
  padding: 0.5rem 0;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  user-select: none;
  cursor: default;
}

.policy-block a.form-link {
  text-decoration: underline;
}
