/* 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%; }
}
/* ==========================
   Landing-style overrides
   (safe: does NOT change layout sizes)
========================== */

/* Right panel glow like landing */
.right-section {
  border-radius: 1rem;
  transition: box-shadow 0.4s ease-in-out;
}

@media (max-width: 768px) {
  .right-section {
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.25), 0 4px 10px rgba(0, 0, 0, 0.05);
  }
}

@media (min-width: 769px) {
  .right-section {
    box-shadow: 0 0 24px rgba(0, 123, 255, 0.45), 0 6px 12px rgba(0, 0, 0, 0.08);
  }
}

/* Remove underlines everywhere (landing behavior) */
a, a:visited, a:hover, a:focus, a:active,
.btn-google, .btn-submit, .login-link {
  text-decoration: none !important;
  outline: none !important;
  border-bottom: none !important;
}

/* Neon button system like your landing page */
.btn-google,
.btn-submit {
  background: #111 !important;
  color: #00ffff !important;
  border: 2px solid #00ffff !important;
  box-shadow: 0 0 4px #00ffff, 0 0 12px #00ffff !important;
  transition: all 0.3s ease-in-out !important;
}

/* Hover = brighter neon */
.btn-google:hover,
.btn-submit:hover {
  background: #00ffff !important;
  color: #111 !important;
  box-shadow: 0 0 6px #00ffff, 0 0 16px #00ffff, 0 0 24px #00ffff, 0 0 32px #00ffff !important;
  transform: scale(1.03);
}

/* Login link styling (no underline, neon hover) */
.login-link {
  color: #111 !important;
  font-weight: 900 !important;
  border-bottom: 2px solid rgba(0,255,255,.65) !important;
  padding-bottom: 1px;
}

.login-link:hover {
  color: #00ffff !important;
  box-shadow: 0 0 10px rgba(0,255,255,.45);
}

/* iOS: prevent zoom like landing */
@supports (-webkit-touch-callout: none) {
  input, button, select, textarea { font-size: 17px !important; }
}
