 :root {
/* centralized color definitions. */
--alert-border: #c10c0d; 
--alert-bg: #fff2f2;
--alert-text: #c10c0d;
--info-border: rgb(1, 83, 155); /* also text */
--info-bg: rgb(217, 249, 255);
}
 
 * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: Arial, sans-serif;
      background: #f0f2f5;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
      color: #000;
    }

    h1 {
      font-size: 28px;
      margin-bottom: 24px;
      color: #1a1a2e;
      letter-spacing: 1px;
    }

    h1 strong {
      color: #0057b8;
    }

    #container {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 24px rgba(0,0,0,0.12);
      padding: 36px 40px 32px 40px;
      width: 380px;
      max-width: 95vw;
    }

    h2 {
      font-size: 20px;
      margin-bottom: 24px;
      color: #1a1a2e;
      text-align: center;
    }

    /* Вкладки переключения режима */
    .tab-switcher {
      display: flex;
      border-radius: 8px;
      overflow: hidden;
      border: 1.5px solid #0057b8;
      margin-bottom: 24px;
    }

    .tab-btn {
      flex: 1;
      padding: 9px 0;
      border: none;
      background: #fff;
      color: #0057b8;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s, color 0.2s;
      letter-spacing: 0.3px;
    }

    .tab-btn.active {
      background: #0057b8;
      color: #fff;
    }

    .tab-btn:first-child {
      border-right: 1px solid #0057b8;
    }

    /* Панели форм */
    .form-panel {
      display: none;
    }

    .form-panel.active {
      display: block;
    }

    .form-login {
      margin-bottom: 16px;
      display: flex;
      flex-direction: column;
    }

    .form-login label {
      font-size: 13px;
      color: #555;
      margin-bottom: 5px;
      font-weight: 600;
    }

    .form-login input[type="text"],
    .form-login input[type="password"],
    .form-login input[type="tel"] {
      padding: 10px 12px;
      border: 1.5px solid #d0d5dd;
      border-radius: 7px;
      font-size: 15px;
      outline: none;
      transition: border-color 0.2s;
      width: 100%;
      background: #fafbfc;
    }

    .form-login input:focus {
      border-color: #0057b8;
      background: #fff;
    }

    /* Поле кода + кнопка */
    .sms-code-row {
      display: flex;
      gap: 8px;
    }

    .sms-code-row input {
      flex: 1;
      padding: 10px 12px;
      border: 1.5px solid #d0d5dd;
      border-radius: 7px;
      font-size: 15px;
      outline: none;
      transition: border-color 0.2s;
      background: #fafbfc;
      letter-spacing: 3px;
      font-weight: bold;
    }

    .sms-code-row input:focus {
      border-color: #0057b8;
      background: #fff;
    }

    .btn-send-code {
      padding: 10px 14px;
      background: #0057b8;
      color: #fff;
      border: none;
      border-radius: 7px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      transition: background 0.2s, opacity 0.2s;
      min-width: 110px;
    }

    .btn-send-code:hover {
      background: #003f8a;
    }

    .btn-send-code:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    /* Таймер */
    .sms-timer {
      font-size: 12px;
      color: #888;
      margin-top: 5px;
      min-height: 18px;
      text-align: right;
    }

    /* Статус SMS */
    .sms-status {
      font-size: 13px;
      margin-top: 6px;
      min-height: 18px;
      border-radius: 5px;
      padding: 0 4px;
    }

    .sms-status.success {
      color: #1a7f37;
    }

    .sms-status.error {
      color: #c0392b;
    }

    /* Кнопка Submit */
    .blue-button {
      margin-top: 22px;
    }

    .blue-button input[type="submit"],
    .blue-button button[type="submit"] {
      width: 100%;
      padding: 12px 0;
      background: #0057b8;
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.2s;
      letter-spacing: 0.5px;
    }

    .blue-button input[type="submit"]:hover,
    .blue-button button[type="submit"]:hover {
      background: #003f8a;
    }

    .divider {
      text-align: center;
      color: #aaa;
      font-size: 13px;
      margin: 18px 0 4px 0;
      position: relative;
    }

    .divider::before,
    .divider::after {
      content: '';
      position: absolute;
      top: 50%;
      width: 38%;
      height: 1px;
      background: #e0e0e0;
    }

    .divider::before { left: 0; }
    .divider::after { right: 0; }
    
    
div.information, div.alert {
    display: flex;
    justify-content: left;
    align-items: center;
    valign-text: middle;
    padding: 5px 5px 5px 34px;
    background-repeat: no-repeat;
    background-position: 9px center;
    font-weight: bold;
    font-size: 13px;
    min-height: 32px;
    margin-bottom: 20px;
}

div.information {
    border: 1px solid var(--info-border);
    background-color: var(--info-bg);
    background-image: url(icon-info.png);
    color: var(--info-border);
}

div.alert {
    border: 1px solid var(--alert-border);
    background-color: var(--alert-bg);
    background-image: url(icon-warning.png);
    color: var(--alert-text);
  
}

/* Блок с пользовательским соглашением */
.form-agreement {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin-top: 12px;
  margin-bottom: 4px;
  text-align: center; /* Центрируем текст для баланса формы */
}

/* Стилизация самой ссылки */
.form-agreement a {
  color: #0057b8;
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
  transition: color 0.2s, text-decoration 0.2s;
}

/* Эффект при наведении курсора */
.form-agreement a:hover {
  color: #003f8a;
  text-decoration: underline;
}
