/* Formulaire Authentification & Inscription - Style unifié */
:root {
  --primary-color: #0056b3;
  --text-color: #2c3e50;
  --border-radius: 8px;
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100vw;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: url("/assets/images/ceil7.jpeg") center center no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-color: #222;
  display: block;
  overflow-y: auto;
}
.page-bg {
  min-height: 100vh;
  min-width: 100vw;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: none;
  overflow: visible;
  box-sizing: border-box;
  padding-top: 0px;
}
.content {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding-top: 40px;
  box-sizing: border-box;
}
.form-container {
  background: rgba(40, 40, 40, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  border: 2px solid rgba(120, 120, 120, 0.45);
  padding: 2rem 1.5rem;
  max-width: 400px;
  margin: 60px auto 40px auto;
  width: 90vw;
  color: #fff;
  display: block;
}
.form-container h2 {
  text-align: center;
  color: #fff;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.form-container input,
.form-container .form-control {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid #bbb;
  border-radius: var(--border-radius);
  box-shadow: none;
  margin-bottom: 15px;
  width: 100%;
  padding: 12px;
  font-size: 1rem;
}
.form-container input::placeholder,
.form-container .form-control::placeholder {
  color: #eee;
  opacity: 1;
}
.form-container button,
.form-container .btn-primary {
  width: 100%;
  padding: 12px;
  border-radius: 25px;
  font-weight: 600;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  margin-top: 10px;
  transition: 0.3s ease;
  cursor: pointer;
}
.form-container button:hover,
.form-container .btn-primary:hover {
  background-color: #003d82;
}
.form-text {
  text-align: center;
  margin-top: 20px;
}
.form-text a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
}
.form-text a:hover {
  text-decoration: underline;
}
.captcha-box {
  background: #f9f9f9;
  border: 1px solid #ccc;
  padding: 12px;
  font-weight: bold;
  letter-spacing: 3px;
  border-radius: 8px;
  text-align: center;
  color: #222;
  margin-bottom: 10px;
}
.captcha-wrapper {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
}
.captcha-wrapper input[type="text"] {
  flex: 1;
  margin: 0;
  height: auto;
}
.alert {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid transparent;
  border-radius: 4px;
}
.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}
.btn-outline-primary {
  border-color: #007bff;
  color: #007bff;
}
.btn-outline-primary:hover {
  background-color: #007bff;
  color: white;
}
.btn-outline-success {
  border-color: #28a745;
  color: #28a745;
}
.btn-outline-success:hover {
  background-color: #28a745;
  color: white;
}
.form-text,
.form-container .form-text,
.form-container .form-control + .form-text,
.form-container .form-text.text-muted,
.form-container small,
.form-container .form-text small {
  color: #222 !important;
}
@media (max-width: 600px) {
  .form-container {
    padding: 1rem 0.5rem;
    max-width: 98vw;
    border-radius: 10px;
    margin: 20px auto 20px auto;
  }
  .page-bg {
    padding: 0 2vw;
    padding-top: 5px;
    min-height: 100vh;
    box-sizing: border-box;
  }
}
@media (max-width: 768px) {
  .container-flex {
    flex-direction: column;
  }
  .image-side {
    height: 200px;
  }
}
