* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f5f7;
  color: #1f1f1f;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 24px 16px;
  transform: translateY(-20px);
}

.logo {
  width: 54px;
  height: 54px;
  display: block;
  background-image: url('https://max.ru/s/img/big-logo.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  font-size: 0;
  margin-bottom: 2px;
}

.title {
  margin: 0;
  font-size: 25px;
  font-weight: 500;
}

#form-state {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.label {
  margin-bottom: 10px;
  font-size: 25px;
  font-weight: 700;
}

.token-input {
  width: 100%;
  height: 56px;
  border-radius: 10px;
  border: 1px solid #d2d6df;
  font-size: 17px;
  padding: 0 16px;
  outline: none;
  margin-bottom: 14px;
  background: #fff;
}

.token-input.error {
  border-color: #d88989;
  background: #f2d6d6;
}

.submit-btn {
  width: 100%;
  height: 64px;
  border: none;
  border-radius: 8px;
  background: #4d94dc;
  color: #fff;
  font-size: 29px;
  font-weight: 700;
  cursor: pointer;
}

.submit-btn:disabled {
  background: #ababaf;
  cursor: default;
}

.helper-link, .support-link {
  color: #2f87cc;
  text-decoration: none;
  font-size: 25px;
}

.helper-link {
  margin-top: 14px;
}

.support-link {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
}

.error-text {
  margin-top: 25px;
  color: #cc6d6d;
  font-size: 26px;
  display: none;
}

.error-text.visible {
  display: block;
}

.success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.success-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #3ccc44;
  color: #fff;
  font-size: 74px;
  line-height: 120px;
  text-align: center;
}

.success-bot-name {
  font-size: 29px;
  text-align: center;
}
