:root {
  --primary-color: #bd8100;
  --primary-dark: #bd8100;
  --primary-light: #e0f5ec;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  position: relative;
  background-color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
    overflow: hidden; 
}

.bg-text {
  color: #54595f;
  font-size: 750px;
  font-weight: 400;
  position: absolute;
  left: 50%;
  top: 43%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  z-index: 0;
  
}

.form-container {
  width: 90%;
  max-width: 270px;
  min-height: 550px;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out;
  margin: 50px auto;
  background-color: transparent;
}

.form-container.flipped {
  transform: rotateY(180deg);
}

.form-front,
.form-back {
  width: 85%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s ease-in-out, opacity 0.3s ease;
}

.form-front {
  background: #ffffff;
  z-index: 2;
}

.form-back {
  transform: rotateY(180deg);
  background-color: #ffffff;
  color: #000;
  z-index: 1;
  text-align: center;
}

.form-back-content {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.form-container.flipped .form-front {
  transform: rotateY(180deg);
  opacity: 0;
}

.form-container.flipped .form-back {
  transform: rotateY(0);
  opacity: 1;
}

.form-back a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
}

.button-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.btn {
  padding: 12px 18px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: 100%;
  max-width: 250px;
  text-align: center;
  font-weight: bold;
}

.form-front h3 {
  font-weight: lighter;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: 20px;
  margin-bottom: 15px;
}

.social-icons a {
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.social-icons a:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.logo {
  width: 60%;
  margin-bottom: 50px;
  transition: transform 0.3s ease;
  margin-top: 15px;
}

.logo:hover {
  transform: scale(1.05);
}

.contact-info h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 20px;
  margin-bottom: 10px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: var(--primary-color);
  gap: 10px;
}

.contact-item i {
  font-size: 1.1rem;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .bg-text {
    font-size: 30vw;
  }
  .form-container {
    max-width: 350px;
  }
  .logo {
    width: 60%;
  }
  .form-front h3 {
    font-size: 1rem;
  }
  .btn {
    font-size: 0.9rem;
    padding: 0.65rem 0.85rem;
  }
  .social-icons a {
    width: 2rem;
    height: 2rem;
  }
}

@media (max-width: 480px) {
  .bg-text {
    display: none;
  }
  .form-container {
    width: 95vw;
    padding: 1rem;
  }
  .form-front,
  .form-back {
    padding: 1rem;
    min-height: 550px;
  }
  .button-container {
    gap: 0.75rem;
  }
  .contact-info {
    gap: 0.75rem;
  }
  .contact-item {
    font-size: 0.95rem;
  }
  .social-icons {
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .bg-text {
    font-size: 30vw;
  }

  .form-container {
    max-width: 350px;
  }

  .logo {
    width: 60%;
  }

  .form-front h3 {
    font-size: 1rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.65rem 0.85rem;
  }

  .social-icons a {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }

  .contact-info {
    gap: 0.75rem;
  }

  .contact-item {
    font-size: 0.95rem;
  }
}

@media (min-width: 1024px) {
  .bg-text {
    font-size: 450px;
  }

  .form-container {
    width: 100%;
    max-width: 450px;
  }

  .btn {
    width: 350px;
  }

  .logo {
    max-width: 500px;
  }

  .social-icons {
    gap: 18px;
  }

  .social-icons a {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .contact-item {
    font-size: 1.1rem;
  }

  .contact-info {
    gap: 40px;
  }

  .form-front h3 {
    margin: 25px 5px 45px;
  }

  .form-front h1 {
    line-height: 1;
  }
}
