/* paymentStyle.css */

/* 1) Theme colors & base */
:root {
  --font: "Inter", system-ui, sans-serif;
  --color-primary: #1e3a8a;  /* navy start */
  --color-primary-end: #3b82f6; /* brighter blue end */
  --color-accent: #f48c42;
  --color-text: #1a1a1a;
  --color-bg-start: #c16b44;
  --color-bg-mid: #e59441;
  --color-bg-end: #fee17c;
}

/* 2) Global reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

/* 3) Background gradient */
.bg-gradient {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    135deg,
    var(--color-bg-start) 0%,
    var(--color-bg-mid)   50%,
    var(--color-bg-end)  100%
  );
  z-index: -2;
}

/* 4) Payment container – tighter, more balanced spacing */
.payment-container {
  width: 100%;
  max-width: 400px;
  margin: 10vh auto;           /* push down a bit for balance */
  padding: 2.5rem 2rem 1rem 2rem;        /* more breathing room */
  background: rgba(255 255 255 / 0.85);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0 0 0 / 0.12);
  text-align: center;
  position: relative;
  z-index: 0;
}

/* 5) Logo */
.payment-container .logo {
  width: 80px;
  margin-bottom: 1.5rem;
}

/* 6) Heading & subtitle */
.payment-container h1 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
}
.payment-container .subtitle {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.6);
}

/* Add space under the visible "Email address" label */
.payment-container label {
  display: block;
  margin-bottom: 1rem; /* adjust as needed */
}

/* 7) Input */
.payment-container input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 8px;
  margin-bottom: 1.5rem;       /* more space below */
  transition: border-color 0.2s;
}
.payment-container input:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* 8) Buy button – navy gradient + hover/active */
.payment-container button {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;

  /* two-stop gradient left→right */
  background-image: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-primary-end)
  );
  /* allow us to slide it */
  background-size: 200% 100%;
  background-position: 0% 50%;

  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0 0 0 / 0.1);
  cursor: pointer;
  transition:
    background-position 0.5s ease,     /* <-- gradient slide */
    transform           0.1s ease,
    box-shadow          0.2s ease;

  margin-bottom: 0.25rem; /* tighten this up */
}

.payment-container button:not(:disabled):hover {
  /* slide gradient to the other side */
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0 0 0 / 0.15);
}

.payment-container button:not(:disabled):active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0 0 0 / 0.2);
}

.payment-container button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 9) Message */
.payment-container .message {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  min-height: 1.25em;
  color: var(--color-accent);
}

/* hide the message element entirely when empty */
.payment-container .message:empty {
  display: none;
}

/* 10) Animated squares container (unchanged) */
.animated-squares {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
}
.animated-squares .square {
  position: absolute;
  will-change: transform, opacity;
}

/* 11) Responsive tweaks */
@media (max-width: 420px) {
  .payment-container {
    margin: 5vh 1rem;
    padding: 2rem 1.5rem;
  }
  .payment-container h1 {
    font-size: 1.5rem;
  }
}
