body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f0f0f0;
  font-family: 'Open Sans', sans-serif;
}

.form-container {
  width: 450px;
  height: 600px;
  background-color: #fff;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border-radius: 10px;
  box-sizing: border-box;
  padding: 20px 30px;
  position: relative;
}

.title {
  text-align: center;
  margin: 10px 0 30px 0;
  font-size: 28px;
  font-weight: 800;
  color: #333;
}

.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 15px;
}

.input {
  border-radius: 20px;
  border: 1px solid #c0c0c0;
  outline: 0 !important;
  box-sizing: border-box;
  padding: 12px 15px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.input:focus {
  border-color: #a28fce;
}

.form-btn {
  padding: 12px 15px;
  border-radius: 20px;
  border: 0 !important;
  outline: 0 !important;
  background: #a28fce;
  color: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s, transform 0.2s;
}

.form-btn:hover {
  background-color: #8a76b5;
}

.form-btn:active {
  transform: scale(0.98);
}

.sign-up-label {
  margin: 0;
  font-size: 14px;
  color: #747474;
  text-align: center;
}

.sign-up-link {
  margin-left: 5px;
  text-decoration: underline;
  text-decoration-color: #a28fce;
  color: #a28fce;
  cursor: pointer;
  font-weight: 600;
}

.buttons-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-top: 20px;
  gap: 15px;
}

.telegram-login-button,
.google-login-button {
  border-radius: 20px;
  padding: 12px 0px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  gap: 10px;
  transition: all 0.3s;
  width: 100%;
  font-weight: 600;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 8px;
}

.telegram-login-button {
  background-color: #0088cc;
  color: #fff;
  border: none;
}

.google-login-button {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  color: #5f6368;
}

.telegram-login-button:hover {
  background-color: #0077b5;
  transform: translateY(-2px);
  box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 12px;
}

.google-login-button:hover {
  background-color: #f8f8f8;
  transform: translateY(-2px);
  box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 12px;
}

.telegram-icon,
.google-icon {
  width: 20px;
  height: 20px;
}

label {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  font-size: 12px;
  color: #747474;
  text-align: center;
  line-height: 1.4;
}

label input[type="checkbox"] {
  margin-right: 8px;
}

.back-arrow {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 24px;
  color: #a28fce;
  cursor: pointer;
  transition: transform 0.3s;
  z-index: 10;
  text-decoration: none;
}

.back-arrow:hover {
  transform: translateX(-5px);
  color: #8a76b5;
}

.error-message {
  color: #ff4d4d;
  font-size: 14px;
  margin-top: 5px;
  text-align: center;
  animation: fadeIn 0.3s;
}

.input-error {
  border-color: #ff4d4d;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Мобильная адаптация */
@media only screen and (max-width: 600px) {
  body {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background-color: #fff;
  }

  .form-container {
    width: calc(100% - 20px);
    max-width: 344px;
    height: auto;
    min-height: auto;
    padding: 20px 15px;
    margin: 20px 0;
    box-shadow: none;
    border: 1px solid #e0e0e0;
  }

  .title {
    font-size: 22px;
    margin: 10px 0 20px 0;
  }

  .input {
    padding: 10px 12px;
  }

  .form-btn {
    padding: 12px;
  }

  .buttons-container {
    width: 100%;
    padding: 0 5px; /* Добавляем небольшой отступ по бокам */
    box-sizing: border-box; /* Учитываем padding в ширине */
  }

  .telegram-login-button,
  .google-login-button {
    width: 100%;
    box-sizing: border-box; /* Учитываем padding в ширине */
    padding: 10px 12px; /* Фиксируем отступы */
  }
}

  label {
    margin-top: 15px;
    font-size: 12px;
  }

  /* Уменьшаем стрелку и делаем её менее заметной */
  .back-arrow {
    top: 15px;
    left: 15px;
    font-size: 18px;
    color: #a28fce;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  /* Добавляем отступ заголовку, чтобы текст не заезжал под стрелку */
  .title {
    padding-left: 30px; /* Отступ слева, чтобы текст не наезжал на стрелку */
    margin-top: 10px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }





