/* Общие стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #007770;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Шапка */
.header {
  background: #fff;
 
  justify-content: space-between;
  padding: 10px 20px;
  align-items: center;
}

.header .logo {
  font-weight: bold;
  font-size: 18px;
}

.lang-switch a {
  margin-left: 10px;
  text-decoration: none;
  color: #007770;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
}

.lang-switch a.active {
  border: 1px solid #007770;
}

/* Контейнер */
.container {

  display: flex;
   justify-content: center; /* если нужно по центру */
  align-items: center;     /* если нужно вертикально по центру */
   margin: 60px auto;
}

/* Форма */
.login-box {
  background: #fff;
  border-radius: 6px;
  max-width: 450px;
  width: 100%;
  
}

.tabs {
  display: flex;
  border-bottom: 1px solid #ccc;
  
}

.tab {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  color: #007770;
}

.tab.active {
  border-bottom: 2px solid #007770;
}

form h2 {
  font-size: 18px;
  margin-bottom: 15px;
}

label {
  display: block;
  margin: 10px 0 5px;
  font-size: 14px;
}

.input-group {
  display: flex;
  gap: 5px;
  align-items: center;
}

.prefix {
  background: #f2f2f2;
  padding: 10px;
  border: 1px solid #ccc;
 
  font-size: 15px;
}

input[type="text"] {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;

}

input.short {
  width: 50px;
}

/* Чекбокс */
.checkbox {
  margin: 18px 0;
  font-size: 13px;
}

.btn {
  background: #ffd500;
  border: none;
  padding: 10px;
  width: 100px;
  margin-top: 40px;
  border-radius: 2px;
  font-weight: 300;
  cursor: pointer;
  font-size: 15px;
  display: block;
}

.divider {
  height: 1px;
  background: #ddd;
  margin: 20px 0;
}

.qr-btn {
  width: 100%;
  background: #f2f2f2;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.help {
  margin-top: 40px;
  text-align: center;
  padding-bottom:40px;
}

.help a {
  color: #007770;
  text-decoration: none;
}

/* Футер */
.footer {
  background: #fff;
  padding: 15px 20px;
margin-top: auto;
 
  font-size: 13px;
}

.footer .links a {
  margin-right: 15px;
  text-decoration: none;
  color: #007770;
}

.footer .links a.active {
  font-weight: bold;
}
/* PIN box */
.pin-box {
  background: #fff;
  padding: 25px;
  border-radius: 6px;
  max-width: 400px;
  margin: 0 auto;
}

.pin-box h2 {
  font-size: 22px;
  margin-bottom: 15px;
}

.pin-info {
  margin-bottom: 20px;
  padding-left: 20px;
  line-height: 1.5;
}

.pin-info li {
  margin-bottom: 8px;
  font-size: 14px;
}

/* Поля */
.pin-box form label {
  display: block;
  margin: 12px 0 6px;
  font-size: 14px;
  font-weight: bold;
  color: #2c4c4c;
}

.pin-box form input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.pin-box hr {
  border: none;
  border-bottom: 1px solid #eee;
  margin: 20px 0;
}

/* Кнопка */
.pin-box .btn {
  background: #ffd500;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}
.login-box {
  background: #fff;
  
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Выбор метода */
.method-select {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.method {
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
  background: #f2f2f2;
  transition: 0.3s;
}

.method img {
  width: 60px;
  height: auto;
}

.method.active {
  border: 2px solid #007770;
  background: #e6f7f7;
}

/* Поля */
label {
  display: block;
  margin: 12px 0 6px;
  font-size: 14px;
  font-weight: bold;
}

.input-group {
  display: flex;
  gap: 8px;
}

input[type="text"] {
  padding: 10px;
  border: 1px solid #ccc;
  font-size: 15px;
  flex: 1;
}

input[type="tel"] {
  padding: 10px;
  border: 1px solid #ccc;
  font-size: 15px;
  flex: 1;
}


input.short {
    width: 51px;
    border-radius: 0px;
    font-size: 15px;
    margin-left: 15px
}
/* Код */
.challenge {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  color: #007770;
  margin: 20px 0;
  gap: 10px;
}

.challenge .icon {
  font-size: 28px;
}

/* Инструкции */
.instructions {
  margin: 15px 0;
  font-size: 14px;
  line-height: 1.6;
}

.instructions ol {
  padding-left: 20px;
  margin-top: 6px;
}

/* Responsive */
@media (max-width: 480px) {
  .input-group {
   // flex-direction: column;
  }

  .method-select {
    flex-direction: column;
    align-items: center;
  }

  .challenge {
    font-size: 18px;
  }
}



    header, footer {
      background: #fff;
      width: 100%;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    header .container, footer .container {
      max-width: 1300px;
      margin: 0 auto;
      padding: 15px 20px;
    }

    main {
      max-width: 1300px;
      margin: 60px auto;
      
      background: #fff;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
      border-radius: 8px;
    }

    /* Loader overlay */
    #loader {
      display: none; /* по умолчанию скрыт */
      position: fixed;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.5);
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
    }

    #loader .spinner {
      width: 60px;
      height: 60px;
      border: 6px solid #f3f3f3;
      border-top: 6px solid #3498db;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

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