* {
    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;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.forgot-password {
    color: #1d97a0;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s;
}

.forgot-password:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.qr-login {
    margin-top: 30px;
    text-align: center;
}

.qr-btn {
    background: none;
    border: none;
    color: #1d97a0;
    cursor: pointer;
    font-size: 16px;
    padding: 10px;
    transition: opacity 0.2s;
}

.qr-btn:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.qr-note {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

  /* ЛЕВАЯ КОЛОНКА */
  .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-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
    margin-bottom: clamp(20px, 3vw, 32px);
  }
  
  .logo-link:hover {
    opacity: 0.8;
  }
  
  .logo {
    width: 100%;
    max-width: 230px;
    height: auto;
    transition: transform 0.3s ease;
  }
  
  .logo-link:hover .logo {
    transform: scale(1.05);
  }
  
  .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;
    transition: color 0.3s;
  }
  
  .instructions-link:hover {
    color: #17818a;
    text-decoration: underline;
  }
  
  /* ПРАВАЯ КОЛОНКА */
  .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);
  }
  
  .register-link{
    font-weight: 500;
    color: #000000;
    font-size: clamp(14px, 1.2vw, 16px);
    text-decoration: none;
    transition: color 0.1s;
}

.register-link:hover {
    color: #1d97a0;
    text-decoration: none; 
}
  
  /* ФОРМА ВХОДА */
  #loginForm {
    width: 100%;
    max-width: 400px;
  }
  
  .form-group {
    margin-bottom: clamp(15px, 2vw, 25px);
    width: 100%;
  }
  
  .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: all 0.3s ease;
  }
  
  .form-control:focus {
    outline: none;
    border-color: #1d97a0;
    box-shadow: 0 0 0 2px rgba(29, 151, 160, 0.1);
  }
  
  /* ОПЦИИ ФОРМЫ */
  .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
  }
  
  .checkbox-group {
    display: flex;
    align-items: center;
  }
  
  .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;
  }
  
  .checkbox-label {
    font-weight: 500;
    color: #000000;
    font-size: clamp(14px, 1.2vw, 16px);
    cursor: pointer;
    user-select: none;
  }
  
  .forgot-password {
    font-size: clamp(13px, 1.1vw, 14px);
    color: #1d97a0;
    text-decoration: none;
    transition: color 0.1s;
  }
  
  .forgot-password:hover {
    color: #17818a;
  }
  
  /* КНОПКА ВХОДА */
  .btn {
    width: 100%;
    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;
    transition: all 0.3s;
  }
  
  .btn:hover {
    background-color: #17818a;
  }
  
  
  /* QR-ВХОД */
  .qr-login {
    width: 100%;
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
  }
  
  .qr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    padding: 12px;
    background: none;
    border: 1px solid #1d97a0;
    border-radius: 5px;
    color: #1d97a0;
    font-size: clamp(14px, 1.5vw, 16px);
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .qr-btn:hover {
    background-color: rgba(29, 151, 160, 0.1);
  }
  
  .qr-icon {
    width: 18px;
    height: 18px;
  }
  
  .qr-note {
    font-size: clamp(11px, 1vw, 12px);
    color: #868686;
    margin-top: 10px;
    line-height: 1.4;
  }
  
  /* МЕДИА-ЗАПРОСЫ */
  @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: 768px) {
    .checkbox:checked::after {
      width: 50%;
      height: 50%;
      border-width: 0 1.5px 1.5px 0;
    }
    
    .form-options {
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
    }
    
    .forgot-password {
      align-self: flex-end;
    }
  }
  
  @media (max-width: 576px) {
    .form-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
    }
    
    .left-side, .right-side {
      padding: 30px 20px;
    }
    
    .checkbox-label, .forgot-password {
      font-size: 13px;
    }
  }
  
  @media (max-width: 400px) {
    .checkbox-group {
      align-items: center;
    }
    
    .qr-btn {
      padding: 10px;
      font-size: 14px;
    }
  }