* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: #f4f4f5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.auth-card {
  background: #ffffff;
  padding: 40px 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.telegram-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}

h2 {
  font-size: 22px;
  color: #222222;
  margin-bottom: 8px;
}

p {
  font-size: 14px;
  color: #707579;
  margin-bottom: 24px;
  line-height: 1.4;
}

.input-group {
  margin-bottom: 20px;
  text-align: left;
}

input[type="tel"],
input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dfe1e5;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

input:focus {
  border-color: #3390ec;
}

.code-input {
  letter-spacing: 6px;
  text-align: center;
  font-weight: bold;
}

.btn-next {
  width: 100%;
  padding: 12px;
  background-color: #3390ec;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-next:hover {
  background-color: #2878c7;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

/* Індикатор завантаження (Spinner) */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3390ec;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

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

/* Іконка успішного завершення */
.success-icon {
  width: 56px;
  height: 56px;
  background-color: #34c759;
  color: #ffffff;
  border-radius: 50%;
  font-size: 28px;
  line-height: 56px;
  margin: 0 auto 20px auto;
  font-weight: bold;
}
