/**
 * !============================================
 * ? regestrashi.css - Стили страницы регистрации
 * !============================================
 * 
 * Форма регистрации, валидация input, согласия,
 * кнопки, анимации fadeIn
 */

/* ? Базовые стили (reset + body) */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #1a1a1a;
  color: #fff;
}

/* ? Header  */
header {
  background-color: #333;
  padding: 1rem;
  text-align: center;
}

nav {
  display: block;
}

.logo h1 {
  margin: 0;
  color: #ff6600;
  display: inline-block;/* * свойство, создающее «гибридный» элемент: */
}

ul {
  list-style: none;  /* *убирает маркеры */
  padding: 0;
  margin: 1rem 0 0 0;
  text-align: center;
}

ul li {
  /* * свойство, создающее «гибридный» элемент: */
  display: inline-block;/* * свойство, создающее «гибридный» элемент: */
  margin: 0 1rem;
}

a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ff6600;
}
.a_href {
  text-align: center;
  color: #ff6600;
  font-size: 20px;
  list-style: none;/* *убирает маркеры */
}

.a_href:hover {
  transform: translateY(-2px);
  text-shadow: 2px 2px 15px #ff6600; /* *  создаёт тень */
}
/* ? Валидация полей формы (цвета границ) */
input:invalid {
  border: 2px solid red;
}

input:valid {
  border: 1px solid #1fce18;
}

/* !============================================
   ? Форма регистрации (центрированная)
   !============================================ */

.register-form {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #222;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* *  создаёт свечение вокруг */
  animation: fadeIn 1s ease-in; /* Появление */
}

.register-form h2 {
  text-align: center;
  color: #ff6600;
  margin-bottom: 2rem;
}

.register-form label {
  margin-bottom: 0.5rem;
  font-weight: bold; /* *полужирный */
}


.vhod_action {
  font-size: 17px;
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: center;
}

.register-form input,
.register-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 5px;
  background-color: #333;
  color: #fff;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.register-form input:hover,
.register-form textarea:hover {
  border-color: #ff6600;
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.3); /* *  создаёт свечение вокруг */
}

.register-form input:focus,
.register-form textarea:focus {
  outline: none;
  border-color: #ff6600;
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.5); /* *  создаёт свечение вокруг */
}

.register-form textarea {
  resize: vertical;
  min-height: 100px;
}



/* ? Блок согласия (радио + чекбоксы с кастомными маркерами) */
.agreement-section {
  margin: 1.5rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, #333 0%, #444 100%);
  border-radius: 10px;
  border-left: 4px solid #ff6600;
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.2); /* *  создаёт свечение вокруг */
}

.agreement-radio,
.agreement-checkbox {
  display: flex;
  cursor: pointer;
  padding: 0.5rem;
}

.agreement-radio:hover,
.agreement-checkbox:hover {
  background: rgba(255, 102, 0, 0.1);
  transform: translateX(5px);
}

.agreement-radio input,
.agreement-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark-radio,
.checkmark-checkbox {
  height: 22px;
  width: 22px;
  background: #333;
  border: 2px solid #ff6600;
  border-radius: 50%;
  margin-right: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* *  создаёт свечение вокруг */
}

.agreement-checkbox .checkmark-checkbox {
  border-radius: 4px;
}

.agreement-radio input:checked~.checkmark-radio {
  background: #ff6600;
  border-color: #e55a00;
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.6);/* *  создаёт свечение вокруг */
}

.agreement-checkbox input:checked ~ .checkmark-checkbox {
  background: #ff6600;
    border-color: #e55a00;
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.6);/* *  создаёт свечение вокруг */
}

/* ? Кнопка submit (градиент + hover lift) */
.submit-btn {
  width: 100%;
  padding: 0.75rem;
  background-color: #ff6600;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: #e55a00;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 102, 0, 0.4); /* *  создаёт свечение вокруг */
}

.submit-btn:active {
  transform: scale(0.98);
}

/* ? Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #333;
  margin-top: 2rem;
}

/* !============================================
   ? Анимации
   !============================================ */

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