html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(270deg, #3d1683, #8b45c5);
  color: #000;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

.a7-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.a7-login-card {
  background: #ffffff;
  border-radius: 0;
  padding: 48px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid #eee;
}

.a7-login-logo {
  margin-bottom: 32px;
  color: #000;
  text-align: left;
}

.a7-login-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #000;
}

.a7-login-card form {
  margin-top: 0;
}

.a7-login-card .form-item {
  margin-bottom: 20px;
}

/* Стили для label */
.a7-login-card label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 8px;
  color: #666;
}

/* Стили для инпутов */
.a7-login-card input[type="text"],
.a7-login-card input[type="password"] {
  width: 100%;
  padding: 12px 0;
  font-size: 20px;
  border: none;
  border-bottom: 2px solid #eee;
  background: transparent;
  color: #000;
  transition: border-color 0.2s ease;
  border-radius: 0;
}

.a7-login-card input[type="text"]:focus,
.a7-login-card input[type="password"]:focus {
  outline: none;
  border-color: #000;
}

.a7-login-card input[type="text"]::placeholder,
.a7-login-card input[type="password"]::placeholder {
  color: #ccc;
}

/* Стили для кнопки входа */
.a7-login-card input[type="submit"],
.a7-login-card .form-submit {
  width: 100%;
  padding: 16px 24px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #ffffff;
  background: #000;
  border: 1px solid #000;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 16px;
}

.a7-login-card input[type="submit"]:hover,
.a7-login-card .form-submit:hover {
  background: #333;
  border-color: #333;
}

.a7-login-card input[type="submit"]:active,
.a7-login-card .form-submit:active {
  background: #000;
}

/* Стили для сообщений об ошибках Drupal */
.messages--error {
  background: #fff;
  color: #ff0000;
  border: 1px solid #ff0000;
  padding: 10px;
  margin-bottom: 20px;
  font-size: 14px;
}

/* МОБИЛЬНЫЕ СТИЛИ - делаем все крупнее и убираем ограничения ширины */
@media (max-width: 768px) {
  .a7-login-page {
    padding: 10px; /* Минимальные отступы по краям */
  }

  .a7-login-card {
    max-width: none !important; /* Принудительно убираем ограничение ширины */
    width: 100% !important; /* Занимаем всю доступную ширину */
    padding: 40px 30px; /* Большие внутренние отступы */
    margin: 0;
  }

  .a7-login-title {
    font-size: 36px !important; /* Значительно увеличиваем заголовок */
    margin-bottom: 32px;
    text-align: center; /* Центрируем на мобильных */
  }

  .a7-login-logo {
    margin-bottom: 40px;
    text-align: center;
  }

  .a7-login-card label {
    font-size: 18px !important; /* Сильно увеличиваем лейблы */
    margin-bottom: 12px;
    font-weight: 700; /* Делаем жирнее */
  }

  .a7-login-card input[type="text"],
  .a7-login-card input[type="password"] {
    padding: 20px 0 !important; /* Большой паддинг для удобства */
    font-size: 22px !important; /* Крупный текст */
    border-bottom-width: 3px; /* Толще граница */
  }

  .a7-login-card input[type="submit"],
  .a7-login-card .form-submit {
    padding: 24px 30px !important; /* Большая кнопка */
    font-size: 20px !important; /* Крупный текст кнопки */
    margin-top: 32px;
    min-height: 60px; /* Минимальная высота кнопки */
  }

  .a7-login-card .form-item {
    margin-bottom: 32px !important; /* Большие отступы между полями */
  }

  .messages--error {
    font-size: 18px !important; /* Крупный текст ошибок */
    padding: 20px;
    margin-bottom: 24px;
  }
}

/* Для совсем маленьких экранов (iPhone SE и подобные) */
@media (max-width: 375px) {
  .a7-login-page {
    padding: 5px;
  }

  .a7-login-card {
    padding: 30px 20px;
  }

  .a7-login-title {
    font-size: 32px !important;
  }

  .a7-login-card label {
    font-size: 16px !important;
  }

  .a7-login-card input[type="text"],
  .a7-login-card input[type="password"] {
    font-size: 20px !important;
    padding: 18px 0 !important;
  }

  .a7-login-card input[type="submit"],
  .a7-login-card .form-submit {
    font-size: 18px !important;
    padding: 22px 24px !important;
  }
}


/*html, body {*/
/*  height: 100%;*/
/*  margin: 0;*/
/*  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;*/
/*  background: linear-gradient(270deg, #3d1683, #8b45c5);*/
/*}*/

/*.a7-login-page {*/
/*  min-height: 100vh;*/
/*  display: flex;*/
/*  align-items: center;*/
/*  justify-content: center;*/
/*}*/

/*.a7-login-card {*/
/*  background: #a159f0;*/
/*  border-radius: 16px;*/
/*  padding: 32px;*/
/*  max-width: 420px;*/
/*  width: 100%;*/
/*  box-shadow: 0 24px 60px rgba(0,0,0,0.6);*/
/*}*/

/*.a7-login-title {*/
/*  font-size: 24px;*/
/*  margin-bottom: 8px;*/
/*  color: white;*/
/*}*/

/*.a7-login-subtitle {*/
/*  font-size: 14px;*/
/*  margin-bottom: 24px;*/
/*  color: white;*/
/*}*/

/*.a7-login-subtitle a {*/
/*  color: white;*/
/*}*/

/*.a7-login-card form {*/
/*  margin-top: 16px;*/
/*}*/

/*.a7-login-card .form-item {*/
/*  margin-bottom: 18px;*/
/*}*/

/*!* Стили для label *!*/
/*.a7-login-card label {*/
/*  display: block;*/
/*  font-size: 14px;*/
/*  font-weight: 500;*/
/*  margin-bottom: 8px;*/
/*  color: #ffffff;*/
/*}*/

/*!* Стили для инпутов *!*/
/*.a7-login-card input[type="text"],*/
/*.a7-login-card input[type="password"] {*/
/*  width: 100%;*/
/*  padding: 12px 16px;*/
/*  font-size: 16px;*/
/*  border: 2px solid rgba(255, 255, 255, 0.3);*/
/*  border-radius: 8px;*/
/*  background: rgba(255, 255, 255, 1);*/
/*  color: #1f2937;*/
/*  transition: all 0.3s ease;*/
/*  box-sizing: border-box;*/
/*}*/

/*.a7-login-card input[type="text"]:focus,*/
/*.a7-login-card input[type="password"]:focus {*/
/*  outline: none;*/
/*  border-color: #ffffff;*/
/*  background: #ffffff;*/
/*  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);*/
/*}*/

/*.a7-login-card input[type="text"]::placeholder,*/
/*.a7-login-card input[type="password"]::placeholder {*/
/*  color: #9ca3af;*/
/*}*/

/*!* Стили для кнопки входа *!*/
/*.a7-login-card input[type="submit"],*/
/*.a7-login-card .form-submit {*/
/*  width: 100%;*/
/*  padding: 14px 24px;*/
/*  font-size: 16px;*/
/*  font-weight: 600;*/
/*  color: #ffffff;*/
/*  background: linear-gradient(135deg, #7c3aed, #5b21b6);*/
/*  border: none;*/
/*  border-radius: 8px;*/
/*  cursor: pointer;*/
/*  transition: all 0.3s ease;*/
/*  box-shadow: 0 4px 14px rgba(76, 30, 143, 0.4);*/
/*  margin-top: 8px;*/
/*}*/

/*.a7-login-card input[type="submit"]:hover,*/
/*.a7-login-card .form-submit:hover {*/
/*  background: linear-gradient(135deg, #6d28d9, #4c1d95);*/
/*  box-shadow: 0 6px 20px rgba(76, 30, 143, 0.6);*/
/*  transform: translateY(-2px);*/
/*}*/

/*.a7-login-card input[type="submit"]:active,*/
/*.a7-login-card .form-submit:active {*/
/*  transform: translateY(0);*/
/*  box-shadow: 0 2px 10px rgba(76, 30, 143, 0.4);*/
/*}*/

/*!* Стили для form-actions контейнера *!*/
/*.a7-login-card .form-actions {*/
/*  margin-top: 24px;*/
/*}*/
