/* Import Karla font assumed already linked in base.html */

.signup-container {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
  background: #fff;
  font-family: 'Karla', sans-serif;
}
.left-section,
.right-section {
  flex: 1 1 50%;
  padding: 3rem;
  box-sizing: border-box;
}
.left-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.logo {
  max-width: 200px;
  animation: rotateY 6s linear infinite;
  transform-style: preserve-3d;
}

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

.title {
  font-size: 2rem;
  margin: 1rem 0 0.5rem;
  color: #333;
}
.subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #555;
}
.nfc-card {
  max-width: 300px;
  width: 80%;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.right-section {
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-wrapper {
  width: 100%;
  max-width: 400px;
}
.form-title {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
  font-weight: 600;
}
.btn-google {
  display: block;
  background: #db4437;
  color: #fff;
  padding: 0.75rem;
  border-radius: 50px;
  text-align: center;
  width: 100%;
  font-size: 1rem;
  margin-bottom: 1rem;
  text-decoration: none;
}
.divider {
  text-align: center;
  margin: 1rem 0;
  color: #999;
}
.signup-form .input-group {
  position: relative;
  margin-bottom: 1rem;
}
.input-icon {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  color: #666;
}
.signup-form input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: 1px solid #ddd;
  border-radius: 50px;
  font-size: 1rem;
  color: #333;
}
.btn-submit {
  display: block;
  background: #007bff;
  color: #fff;
  padding: 0.75rem;
  border: none;
  width: 100%;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-submit:hover {
  background: #0056b3;
}
.login-redirect {
  text-align: center;
  margin-top: 1rem;
  color: #666;
}
.login-link {
  color: #007bff;
  font-weight: 600;
  text-decoration: none;
}
.login-link:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .signup-container {
    flex-direction: column;
  }

  /* 👇 Flip the order: form (right) on top, branding (left) on bottom */
  .right-section {
    order: 1;
  }

  .left-section {
    order: 2;
  }

  .left-section,
  .right-section {
    flex: 1 1 100%;
    padding: 2rem 1rem;
    text-align: center;
  }

  .logo { max-width: 150px; }
  .nfc-card { max-width: 80%; }
}
