@import url("../css/translate-button.css");
:root {
  --green: #18cb96;
  --overlay: rgba(0, 0, 0, 0.8);
}
body,
html {
  margin: 0;
  padding: 0;
  height: auto;
  font-family: "Poppins", sans-serif;
  background: url("../assets/32806971.jpg") no-repeat center center/cover;
  position: relative;
}
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay);
  z-index: 1;
}
.container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 15px;
}
.form-wrapper {
  background: rgba(0, 0, 0, 0.7);
  padding: 40px 25px;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.425);
}
.logo img {
  width: 12rem;
  height: 6rem;
  margin: auto;
  display: block;
}
h2 {
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
}
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 5px;
}
.form-group input,
.form-group select {
  padding: 12px;
  border: 1px solid #555;
  background: #111;
  color: #fff;
  border-radius: 6px;
  outline: none;
  transition: all 0.3s ease;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--green);
  background: #222;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.checkbox {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #ccc;
}
.checkbox input {
  margin-right: 10px;
}
.btn-submit {
  background: var(--green);
  border: none;
  width: 100%;
  padding: 14px;
  color: #fff;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.btn-submit:hover {
  background: #218838;
}
.success-message {
  display: none;
  margin-top: 20px;
  padding: 15px;
  background-color: #1d643b;
  color: #fff;
  border-radius: 6px;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out forwards;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-top: 3px solid var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-top: 3px solid var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (min-width: 768px) {
  .form-wrapper {
    transform: scale(0.8);
    margin-top: -6rem;
  }
  .form-row {
    flex-direction: row;
  }
  .form-row .form-group {
    flex: 1;
  }
}
