:root {
  --primary-color: #92bf1f;
  --primary-hover: #7da619;
  --green-light: #92bf1f;
  --green-dark: #7da619;
  --green-lime: #a8d431;
  --green-dark-alt: #6b8c15;
  --text-dark: #1a1f36;
  --text-gray: #697386;
  --border-color: #e3e8ee;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Ubuntu, sans-serif;
  background-color: #ffffff;
  color: var(--text-dark);
  position: relative;
  overflow-x: hidden;
}

.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(to bottom, white 0%, rgb(247, 250, 252) 33%);
}

.background-animation::before,
.background-animation::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  opacity: 0.5;
}

.background-animation::before {
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  top: 10%;
  left: -150px;
  animation: float1 8s ease-in-out infinite;
}

.background-animation::after {
  background: linear-gradient(135deg, var(--green-lime), var(--green-dark-alt));
  bottom: 10%;
  right: -150px;
  animation: float2 10s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(100px, 50px) scale(1.1);
  }
}

@keyframes float2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-100px, -50px) scale(1.1);
  }
}

.form-wrapper {
  position: relative;
  z-index: 10;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

.logo {
  width: 230px;
  max-width: 70vw;
  height: auto;
  display: block;
  margin: 0 auto;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.card {
  border: none;
  border-radius: 8px;
}

.card-body {
  background: white;
}

.form-label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-control,
.form-select {
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.5;
  border: 1px solid rgba(60, 66, 87, 0.16);
  border-radius: 4px;
  transition: all 0.2s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(84, 105, 212, 0.1);
}

.btn-primary {
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
  font-weight: 600;
  padding: 12px;
  transition: all 0.3s;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(84, 105, 212, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-hover);
}

.footer-links {
  font-size: 14px;
}

.footer-links a {
  color: var(--text-gray);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--text-dark);
}

.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-top: 4px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 1050;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
}

.autocomplete-suggestions.active {
  display: block;
}

.autocomplete-suggestion {
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.autocomplete-suggestion:last-child {
  border-bottom: none;
}

.autocomplete-suggestion:hover {
  background-color: #f0f7ff;
}

.autocomplete-suggestion strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 3px;
  font-weight: 600;
}

.autocomplete-suggestion small {
  color: #666;
  font-size: 0.9em;
}

.loading {
  padding: 12px 15px;
  text-align: center;
  color: #666;
  font-style: italic;
}

h1 {
  color: #92bf1f;
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.5rem;
  }

  .card-body {
    padding: 1.5rem !important;
  }
}

.loyalty-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.loyalty-card .card-body {
  background: linear-gradient(135deg, #92bf1f, #7da619);
  color: white;
}

.card-number {
  font-size: 1.4rem;
  letter-spacing: 3px;
  font-weight: 600;
}

.wallet-buttons {
  margin-top: 25px;
}

.wallet-btn {
  width: 100%;
  padding: 14px;
  font-weight: 600;
  border-radius: 10px;
  font-size: 16px;
}

.apple-btn {
  background: black;
  color: white;
}

.apple-btn:hover {
  background: #222;
}

.android-btn {
  background: #34A853;
  color: white;
}

.android-btn:hover {
  background: #2c8f47;
}

.password-rules {
  list-style: disc;
  padding-left: 20px;
}

.password-rules li {
  color: #999;
}

.password-rules li.valid {
  color: green;
  font-weight: 600;
}


.separator {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 500;
}
.separator::before,
.separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.btn-register {
    background: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 15px;
}
.btn-register:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(146, 191, 31, 0.25);
}
.btn-register:active {
    transform: translateY(0);
}

.forgot-link {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
}
.forgot-link:hover {
    color: var(--primary-color);
}