html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: url("https://cdn.wallpapersafari.com/71/61/aLoJSe.jpg") center center / cover no-repeat fixed;
  position: relative;
}

/* ✅ Затемнение как обычный div */
.bg-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 100;
}

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 101;
}

.register-section {
  display: flex;
  flex-grow: 1;
}

.register-form {
  background: rgba(255, 255, 255, 0.95);
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  max-width: 420px;
  width: 100%;
  margin: auto;
}

.register-form h2 {
  font-weight: 700;
  margin-bottom: 30px;
}

.form-control {
  border-radius: 12px;
  padding-left: 42px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
}

.form-label {
  font-weight: 500;
  color: #495057;
}

.form-group {
  position: relative;
}

.form-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #adb5bd;
}

.btn-primary {
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
  background-color: #ff3c00;
  border: none;
  transition: 0.3s ease;
}

.btn-primary:hover {
  background-color: #d53100;
}

.promo {
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.promo h1 {
  font-size: 3rem;
  font-weight: 800;
}

.promo p {
  font-size: 1.25rem;
  margin-top: 20px;
}

.bottom-ad {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  text-align: center;
  font-size: 1rem;
}

.bottom-ad a {
  color: #ffc107;
  font-weight: 600;
  text-decoration: none;
}

.bottom-ad a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .register-section {
    display: none;
  }

  .promo {
    padding: 40px 20px;
  }

  .promo h1 {
    font-size: 2rem;
  }

  .promo p {
    font-size: 1rem;
  }

  .bottom-ad {
    font-size: 0.9rem;
  }
}
