
/* ========================================================================
 * ПОЛНЫЙ КОД СТИЛЕЙ ДЛЯ СТРАНИЦЫ РЕГИСТРАЦИИ
 * Версия: Финальная
 * - Все требования объединены в один файл.
 * ======================================================================== */

/* ---------------------------------------------------------------------- */
/* 1. ОБЩИЕ КОНТЕЙНЕРЫ И МАКЕТ */
/* ---------------------------------------------------------------------- */

.container-registers {
  margin-top: 40px;
  margin-bottom: 50px;
}

.custom-shadow-vhid {
  width: 100%;
  max-width: 660px; /* Немного увеличена ширина для полей в один ряд */
  background: #fff;
  padding: 40px 100px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgb(137 137 137 / 15%);
  animation: fadeIn 0.5s ease-in-out;
  border: 1px solid #e0e0e0;
}

.title-with-icon {
  justify-content: flex-start;
  align-items: center;
}

.icon-abs-left {
  position: relative;
  margin-right: 15px;
}

/* ---------------------------------------------------------------------- */
/* 2. ЗАГОЛОВКИ */
/* ---------------------------------------------------------------------- */

h2.text-center {
  color: #000000;
  font-weight: 600;
  font-size: 24px;
  animation: bounceIn 0.5s ease-out;
  text-align: center;
  margin: 0;
  width: 100%;
}

/* ---------------------------------------------------------------------- */
/* 3. ПОЛЯ ВВОДА И ГРУППЫ */
/* ---------------------------------------------------------------------- */

#registerForm .form-control {
  border: 1px solid #d8d8d8;
  background-color: #fff;
  padding: 12px 15px;
  font-size: 16px;
  color: #333;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  height: 46px;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}
#registerForm .form-control-1 {

  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}
#registerForm .form-control-2 {
  background-color: #fff;
  border-right: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* Убираем скругление справа у полей, за которыми идут иконки */
.input-group > .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Общий стиль для всех "аддонов" в группе (иконки, префиксы) */
#registerForm .input-group-text,
.tooltip-container,
.password-strength-container {
    background-color: #fcfcfc;
    border: 1px solid #d8d8d8;
    border-left: none; /* Убираем левую рамку, чтобы не было двойной линии */
    display: flex;
    align-items: center;
}

/* Стиль для префикса "+38" */
#registerForm .input-group-text:first-child {
    border-left: 1px solid #d8d8d8;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

/* Закругляем только последний элемент в группе */
.input-group > *:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

#registerForm .form-control:focus {
  outline: none;
  border-color: #86b7fe;
  box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
}

#registerForm .form-control::placeholder {
  color: #b0b0b0;
  opacity: 1;
}


/* ---------------------------------------------------------------------- */
/* 4. ИКОНКИ В ПОЛЯХ ВВОДА */
/* ---------------------------------------------------------------------- */

.eye-icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 4px; /* Небольшой отступ внутри иконки */
}
.eye-icon-container img {
  filter: grayscale(1) opacity(0.6);
  transition: filter 0.2s ease;
}
.eye-icon-container:hover img {
  filter: none;
}

.btn-grey {
  border: none;
  background: transparent;
  padding: 3px 10px;
  margin-right: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-grey svg {
  width: 24px;
  height: 24px;
  fill: #000000;
}

.tooltip-container {
  position: relative;
  padding: 0;
  background: white;
}

.tooltip-text {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  background: #333;
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 10;
}
.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

#resetPasswordIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  cursor: pointer;
  border-top: 1px solid #d8d8d8;
  border-bottom: 1px solid #d8d8d8;
  border-right: 1px solid #d8d8d8;
  font-size: 12px;
}
.input-group-text-1{
  border-left: 1px solid #d8d8d8 !important;
}

/* ---------------------------------------------------------------------- */
/* 5. ИНДИКАТОР СИЛЫ ПАРОЛЯ */
/* ---------------------------------------------------------------------- */

.password-strength-container {
    padding: 0 8px;
    transition: opacity 0.3s;
    background: white;
}

#strengthText {
  display: none;
}

.strength-bar-container {
  display: flex;
  align-items: center;
  gap: 3px;
}

.strength-bar {
  width: 3px;
  height: 18px;
  background: #e0e0e0;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}
.strength-bar.weak { background-color: #dc3545; }
.strength-bar.medium { background-color: #ffc107; }
.strength-bar.strong { background-color: #00d430; }


/* ---------------------------------------------------------------------- */
/* 6. КНОПКИ И ЧЕКБОКСЫ */
/* ---------------------------------------------------------------------- */

.submit-registration {
  margin-top: 25px;
}

.submit-registration .btn-dark {
  background: #007bff;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  color: #fff;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border-radius: 8px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  letter-spacing: 0.5px;
  height: 50px;
}

.submit-registration .btn-dark:hover {
  background: #0069d9;
  transform: translateY(-1px);
}

.submit-registration .btn-dark:disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.form-check-input {
  border: 1px solid #adb5bd;
}
.form-check-input:checked {
  background-color: #007bff;
  border-color: #007bff;
}

/* ---------------------------------------------------------------------- */
/* 7. МОДАЛЬНОЕ ОКНО (ОРИГИНАЛЬНЫЕ СТИЛИ) */
/* ---------------------------------------------------------------------- */

.modal-dialog {
  max-width: unset;
  margin-right: 100px;
  margin-left: 100px;
  height: 80vh;
  margin-top: 10vh;
  margin-bottom: 10vh;
  display: flex;
  align-items: center;
}
.modal-content {
  height: 100%;
  border-radius: 10px;
}
.modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}
.modal-title {
  font-weight: bold;
}
.modal-body {
  padding: 20px;
  font-size: 16px;
  line-height: 1.5;
  max-height: 500px;
  height: auto;
  overflow-y: auto;
}
.modal-footer {
  border-top: 1px solid #dee2e6;
}
.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}
.btn-primary:hover {
  background-color: #0056b3;
  border-color: #004085;
}
.btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
}
.btn-secondary:hover {
  background-color: #545b62;
  border-color: #4e555b;
}

#termsCheckbox:focus,
.form-control-pin:focus,
.btn-close:focus {
  outline: none;
  box-shadow: none;
}


/* ---------------------------------------------------------------------- */
/* 8. АНИМАЦИИ И ДОПОЛНИТЕЛЬНЫЕ СТИЛИ */
/* ---------------------------------------------------------------------- */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
  0% { transform: scale(0.9); opacity: 0; }
  50% { transform: scale(1.05); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

#phoneErrorRegister {
  font-size: 14px;
  color: #dc3545;
  text-align: left;
  margin-bottom: 10px;
  
}




.zagolovok-reg{
  font-weight: 600;
  color: #000000;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  position: relative;
  display: inline-block;
  animation: bounceIn 0.5s ease-out;
  font-size: 24px;
}
input:focus,
button:focus,
textarea:focus,
select:focus {
  outline: none !important;
  box-shadow: none !important;
  border: 1px solid #d8d8d8 !important;
}

.form-control-2,
.form-control-2:focus {
  border-right: none !important; /* стандартний бордер */

}


