html, body {
  height: 100vh!important;
  margin: 0!important;
  padding: 0!important;
  overflow: hidden; /* Prevents scrolling */
}

.navbar {
  top: 5% !important;           /* Stick to the top of the page */
  width: 95% !important;      /* Full width */
  padding: min(1em,1%) !important;
  border-radius: 70px !important;
  background-color: rgba(13, 13, 13, 0.8) !important;
  display: flex !important;
  justify-content: space-between !important; /* Logo on left, buttons on right */
  align-items: center !important; /* Vertically center items */
  z-index: 1 !important; /* Ensure it appears above other elements */
}

.logo_nav {
  max-height: 50px!important; /* Adjust size */
  height: auto!important;
  width: auto!important;
}

/* Ensure navbar links are inline */
.navbar-nav {
  display: flex!important;
  justify-content: flex-end!important; /* Align the buttons to the right */
}

.nav-item {
  margin-left: 20px!important; /* Optional: Adds spacing between buttons */
}

.nav-link {
  display: inline-block!important; /* Ensure they stay in one line */
}

/* Button styles for primary, danger, and success */
.nav-item .btn-primary {
  font-size: clamp(1rem, 2vw, 1.5rem) !important;
  white-space: nowrap !important; /* Prevent text from wrapping */
  font-family: 'Poppins', sans-serif !important; /* Ensure font applies */
  font-weight: bold!important;
  color: #fff !important;
}

.nav-item .btn-danger {
  font-size: clamp(1rem, 2vw, 1.5rem) !important;
  white-space: nowrap !important; /* Prevent text from wrapping */
  font-family: 'Poppins', sans-serif !important; /* Ensure font applies */
  font-weight: bold!important;
  color: #fff !important;
}

.nav-item .btn-success {
  font-size: clamp(1rem, 2vw, 1.5rem) !important;
  white-space: nowrap !important; /* Prevent text from wrapping */
  font-family: 'Poppins', sans-serif !important; /* Ensure font applies */
  font-weight: bold!important;
  color: #ffd700 !important;
}

/* Hover effect */
.nav-link.btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3) !important;
  background-color: rgb(94, 92, 92) !important; /* Add light grey background on hover */
}

.bg-image {
  position: absolute;
  background-image: url("/static/images/registration.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.card {
  width: 700px;
  max-width: 90%;
  opacity: 0.7!important;
  border-radius: 40px!important;
  box-shadow: 0 4px 44px 16px rgba(0, 0, 0, 0.25)!important;
  border: solid 1px rgba(255, 215, 0, 0.96)!important;
  background-color: rgba(34, 34, 34, 0.7)!important;
  position: relative;
  margin: 5% auto;
  padding: 40px;
  text-align: center;
}

/* === Заголовки === */
.card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #fff!important;
  margin-bottom: 15px;
}

.card h2 {
  font-size: 20px;
  color: #eee;
  font-weight: 400;
  margin-bottom: 40px;
}

/* === Общий стиль инпутов === */
.input-group {
  width: 100%;
  height: 50px;
  font-family: 'Poppins', sans-serif ;
  font-size: 18px;
  color: rgba(80, 80, 80, 0.9);
  border-radius: 10px;
  border: solid 1px #000;
  background-color: rgba(255, 255, 255, 0.95);
  padding-left: 15px;
  outline: none;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
}

/* Отступы между полями */
.mb-3 {
  margin-bottom: 20px !important;
}

/* Фокус на поле */
.input-group:focus {
  border: 2px solid #ffd700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* Плейсхолдер */
.input-group::placeholder {
  color: #536972;
  opacity: 0.8;
}

/* === CAPTCHA === */
.captcha-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  border: solid 1px #000;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 5px 10px;
}

.captcha-container input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  color: rgba(80, 80, 80, 0.9);
  padding-left: 10px;
}

.captcha-container img {
  height: 40px;
  border-radius: 5px;
  margin-left: 10px;
  cursor: pointer;
  border: 1px solid #ccc;
}

/* === Кнопка регистрации === */
.btn.btn-primary {
  width: 100%;
  height: 55px;
  border-radius: 10px;
  background-color: rgba(255, 215, 0, 0.9);
  border: solid 2px #000;
  color: rgba(0, 0, 0, 0.8);
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

/* Mobile devices (width: up to 480px) */
@media (max-width: 480px) {
  .Registration-Menu {
    width: 90%; /* Full width for small screens */
    height: auto;
    top: 10%;
    left: 5%;
    padding: 20px;
  }

  .title {
    font-size: 24px;
    left: 0;
  }

  .sub_title {
    font-size: 16px;
    left: 0;
  }

  .Signup-Button {
    width: 90%;
    font-size: 24px;
  }

  .form-fields {
    gap: 15px;
  }

  .input-group input {
    font-size: 18px;
    height: 45px;
  }
}

/* Tablet devices (width: 481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .Registration-Menu {
    width: 80%; /* Slightly larger container */
    height: auto;
  }

  .title {
    font-size: 28px;
  }

  .sub_title {
    font-size: 18px;
  }

  .Signup-Button {
    width: 80%;
    font-size: 26px;
  }

  .form-fields {
    gap: 18px;
  }

  .input-group input {
    font-size: 19px;
    height: 48px;
  }
}

/* Desktop devices (width: 769px and above) */
@media (min-width: 1280px) and (max-width: 1500px) {
  .Registration-Menu {
    width: 500px; /* Maintain the original width */
    height: 70%!important;
  }
 
  .title {
    font-size: clamp(1rem,1.5rem,2rem);
  }
 
  .sub_title {
    font-size: clamp(0.5rem,1rem,1.5rem);
  }
 
  .Signup-Button {
    max-width: 200px;
    font-size: clamp(0.7rem,1.5rem,2rem);
    font-family: Poppins, sans-serif;
  }
 
  .form-fields {
    gap: 10px;
  }
 
  .input-group input {
    font-size: clamp(0.7rem,1.2rem,1.5rem);
    height: clamp(1rem,1.5rem,2rem);
  }
 }