/* ==== БАЗА ==== */

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, "San Francisco", Arial;
}

.hidden {
  display: none;
}

/* главный экран */

.screen {
  height: 100vh;
  padding: 60px 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #000;
  box-sizing: border-box;
}

/* центральная колонка (всё по центру) */

.center {
  width: 350px;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

/* кнопка "Отмена" сверху */

.top-back {
  position: absolute;
  top: 22px;
  left: 18px;
  color: #007AFF;
  font-size: 18px;
  cursor: pointer;
}

/* трубка */

.phone-img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  display: block;
  margin: 0 auto 18px;
}

/* заголовок и текст */

.title {
  font-size: 28px;
  font-weight: 600;
  margin: 10px 0 6px;
}

.subtitle {
  color: #8e8e93;
  font-size: 15px;
  margin-top: 4px;
  margin-bottom: 30px;
  line-height: 1.4;
}

/* ==== выбор страны ==== */

.country-box {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  padding-bottom: 14px;
  border-bottom: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  cursor: pointer;
}

.country-name {
  color: #007AFF;
}

.country-flag {
  font-size: 20px;
}

.arrow {
  margin-left: auto;
  color: #666;
}

/* ==== телефон ==== */

.phone-input-box {
  width: 100%;
  max-width: 350px;
  margin: 20px auto 0;
  padding-bottom: 14px;
  border-bottom: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.phone-code {
  font-size: 20px;
  font-weight: 400;
}

#phone-input {
  font-size: 20px;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  width: 200px;
}

/* ==== кнопка ==== */

.btn {
  width: 100%;
  max-width: 350px;
  background: #007AFF;
  padding: 16px;
  border-radius: 14px;
  border: none;
  font-size: 18px;
  font-weight: 500;
  color: #fff;          /* ← вот это делает текст белым */
  margin: 0 auto 8px;
}


.disabled {
  background: #2f80ed60 !important;
  color: #ffffff70;
}

/* ==== лоадер ==== */

.loader {
  width: 40px;
  height: 40px;
  border: 4px solid #2f80ed;
  border-top-color: transparent;
  border-radius: 50%;
  margin: 40px auto;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: #8e8e93;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

/* ==== модалка стран ==== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #111;
  padding: 20px;
  overflow: auto;
  animation: slide 0.2s ease-out;
  box-sizing: border-box;
}

.modal-drag {
  width: 40px;
  height: 4px;
  background: #444;
  border-radius: 2px;
  margin: 0 auto 15px;
}

.modal-search {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: #222;
  border: none;
  color: #fff;
}

.modal-list {
  margin-top: 20px;
}

.country-item {
  padding: 14px 0;
  border-bottom: 1px solid #222;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
/* ===== СТРАНИЦА ПАРОЛЯ ===== */

.monkey-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
  margin: 0 auto 25px;
}

.subtitle-center {
  text-align: center;
}

/* iOS input — ТЁМНЫЙ, без белой рамки */
.password-input {
  width: 75%;
  padding: 14px 12px;
  background: #111;         /* как в Telegram */
  border: 1px solid #222;   /* тонкая тёмная рамка */
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  outline: none;
  margin: 25px auto 0;
  display: block;
  text-align: center;
}

.password-input::placeholder {
  color: #888;
}

.password-input:focus {
  border-color: #007aff;    /* синий Telegram */
}

/* ===== LOADING SCREEN ===== */

.loader {
  width: 40px;
  height: 40px;
  border: 4px solid #2f80ed;
  border-top-color: transparent;
  border-radius: 50%;
  margin: 40px auto;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: #8e8e93;
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
  max-width: 320px;
  margin: 0 auto;
  word-wrap: break-word;
  white-space: normal;
}

/* ===== LOADING SCREEN FIX ===== */

.loading-screen {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center; /* всё по центру */
  align-items: center;      /* по центру по горизонтали */
  text-align: center;
}

.loading-title {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin-bottom: 12px;
  margin-top: 14px;
}

.loading-thanks {
  color: #8e8e93;
  font-size: 15px;
  text-align: center;
  margin-top: 18px;   /* чуть больше — как у Apple */
  letter-spacing: 0.1px;
  opacity: 0.85;
}

.set-password-link {
  color: #007AFF;
  font-size: 16px;
  text-align: center;
  margin-top: 12px;
  cursor: pointer;
  user-select: none;
}

.set-password-link:active {
  opacity: 0.6;
}

.instruction-box {
  max-width: 350px;
  margin: 0 auto;
  text-align: left;
  color: #ccc;
  font-size: 16px;
  line-height: 1.45;
}

.instruction-step {
  margin-bottom: 10px;
}
