/* Сброс box-sizing */
* {
  box-sizing: border-box;
}

/* Базовые стили body */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff; /* Светлый фон Telegram */
  color: #2c2c2c;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  min-height: 100vh;
}

/* Контейнер авторизации */
.auth-container {
  background-color: #f9f9f9;
  padding: 24px;
  border-radius: 16px;
  width: 400px;
  max-width: 90vw;
  text-align: center;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Заголовок */
h2 {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 600;
  color: #229ED9; /* Telegram Blue */
}

/* Выделение */
.highlight {
  color: #229ED9;
  font-weight: bold;
}

/* Форма */
form {
  display: flex;
  flex-direction: column;
}

/* Подписи */
label {
  text-align: left;
  font-size: 14px;
  margin-bottom: 5px;
  color: #555;
}

/* Поля ввода */
input {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  color: #333;
  margin-bottom: 15px;
  font-size: 15px;
  transition: border-color 0.2s;
}
input:focus {
  border-color: #229ED9;
  outline: none;
}

/* Кнопки */
button {
  padding: 12px;
  background-color: #229ED9;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  font-size: 15px;
  transition: background-color 0.2s, transform 0.2s;
}
button:hover {
  background-color: #1a8bb8;
  transform: translateY(-2px);
}

/* Ссылки */
a {
  color: #229ED9;
  text-decoration: none;
  font-size: 14px;
}
a:hover {
  text-decoration: underline;
}

/* Промо-форма */
#promo-form input {
  padding: 10px;
  margin-right: 10px;
  width: 100%;
  font-size: 15px;
}

/* Подписки */
#subscription-options label {
  font-size: 15px;
  display: block;
  margin: 10px 0;
  background: #f1faff;
  border: 1px solid #cde9f4;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  color: #2c2c2c;
}
#subscription-options label:hover {
  background: #e6f6fd;
}

/* Мобильная адаптация */
@media screen and (max-width: 780px) {
  body {
    display: block;
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
  }
  .auth-container {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    border-radius: 0;
    padding: 20px;
    box-shadow: none;
  }
  h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  input, button, a, #promo-form input, #subscription-options label {
    font-size: 17px;
  }
}
