* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Comfortaa', Arial, sans-serif;
}

body {
  background-color: #ffffff;
  min-height: 100vh;
}

.container {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 100vh;
}


/* Стили для ошибок валидации */
.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.is-invalid + .error-message {
    display: block;
}

.checkbox-group .is-invalid {
    outline: 1px solid #dc3545;
}

.privacy-link {
    color: #1d97a0;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.privacy-link:hover {
    opacity: 0.8;
}


/* ЛЕВАЯ КОЛОНКА */
.left-side {
  width: 42%;
  min-width: 350px;
  background-color: #F5F5F8;
  padding: clamp(30px, 5vw, 80px) clamp(30px, 5vw, 125px);
  display: flex;
  flex-direction: column;
}

.logo {
  width: 100%;
  max-width: 230px;
  height: auto;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.left-side h1 {
  font-weight: 600;
  color: #000000;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.4;
  margin-bottom: clamp(15px, 2vw, 20px);
}

.left-side h2 {
  font-weight: 500;
  color: #000000;
  font-size: clamp(18px, 1.8vw, 22px);
  margin-bottom: clamp(30px, 20vw, 400px);
}

.instructions {
  margin-top: auto;
}

.instructions-title {
  font-weight: 500;
  color: #000000;
  font-size: clamp(16px, 1.2vw, 18px);
  margin-bottom: 10px;
}

.instructions-link {
  display: block;
  font-weight: 500;
  color: #1d97a0;
  font-size: clamp(16px, 1.2vw, 18px);
  margin-bottom: 10px;
  text-decoration: none;
}

/* ПРАВАЯ КОЛОНКА */
.right-side {
  width: 58%;
  padding: clamp(40px, 8vw, 100px) clamp(20px, 5vw, 115px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.form-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 400px;
  align-items: center;
  margin-bottom: clamp(30px, 6vw, 80px);
  padding: 0 0px;
}

.form-title {
  font-family: 'Lemon', cursive;
  font-weight: 400;
  color: #1d97a0;
  font-size: clamp(24px, 2.5vw, 30px);
}

.login-link{
  font-weight: 500;
  color: #000000;
  font-size: clamp(14px, 1.2vw, 16px);
  text-decoration: none;
  transition: color 0.1s;
}

.login-link:hover {
  color: #1d97a0;
  text-decoration: none;
}

/* ФОРМА */

#registrationForm {
  width: 100%;
  max-width: 400px;
}

.form-group {
  margin-bottom: clamp(15px, 2vw, 25px);
  width: 100%;
  max-width: 400px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #000000;
  font-size: clamp(14px, 1.2vw, 16px);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  height: clamp(36px, 4vw, 40px);
  padding: 0 15px;
  background-color: #ffffff;
  border-radius: 5px;
  border: 0.5px solid #868686;
  font-size: clamp(14px, 1.2vw, 16px);
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #1d97a0;
  box-shadow: 0 0 0 2px rgba(29, 151, 160, 0.1);
}

/* ЧЕКБОКСЫ */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: clamp(10px, 1.5vw, 15px);
  width: 100%;
  max-width: 400px;
}

.checkbox {
  width: clamp(18px, 2vw, 20px);
  height: clamp(18px, 2vw, 20px);
  margin-right: 10px;
  background-color: #fff;
  border: 1px solid #868686;
  border-radius: 4px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.2s ease;
  position: relative;
}

.checkbox:hover {
  border-color: #1d97a0;
}

.checkbox:checked {
  background-color: #fff;
  border-color: #1d97a0;
}

.checkbox:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 60%;
  transform: translate(-50%, -60%) rotate(45deg);
  border: solid #1d97a0;
  border-width: 0 2px 2px 0;
}

@media (max-width: 768px) {
  .checkbox:checked::after {
    width: 50%;
    height: 50%;
    border-width: 0 1.5px 1.5px 0;
  }
}

.checkbox-label {
  font-weight: 500;
  color: #000000;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.4;
}

/* КНОПКА */
.btn {
  width: 100%;
  max-width: 400px;
  height: clamp(38px, 4vw, 40px);
  background-color: #1d97a0;
  border-radius: 5px;
  border: none;
  font-weight: 700;
  color: #ffffff;
  font-size: clamp(16px, 1.5vw, 20px);
  cursor: pointer;
  margin-top: clamp(20px, 3vw, 30px);
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #17818a;
}

/* МЕДИА-ЗАПРОСЫ */
@media (max-width: 1024px) {
  .container {
    flex-direction: column;
  }
  
  .left-side, .right-side {
    width: 100%;
    padding: 40px clamp(20px, 8vw, 60px);
  }
  
  .left-side {
    order: 2;
    min-width: auto;
  }
  
  .left-side h2 {
    margin-bottom: 40px;
  }
  
  .right-side {
    order: 1;
    padding-top: 60px;
    padding-bottom: 40px;
  }
}

@media (max-width: 576px) {
  .form-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .left-side, .right-side {
    padding: 30px 20px;
  }
  
  .checkbox-label {
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .checkbox-group {
    align-items: center;
  }
  
  .checkbox-label br {
    display: none;
  }
}