:root {
  --charcoal-slate: #2B2D30;
  --smoked-onyx: #1C1C1E;
  --aged-brass: #C9A961;
  --text-muted: #A89880;
  --text-bright: #EDE0D0;
  --taupe-grey: #D4C5B0;
}

* { box-sizing: border-box; }

body, html {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--smoked-onyx);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.auth-scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.square {
  position: absolute;
  top: calc(-18vh - var(--offset, 0px));
  left: calc(var(--start) * 1%);
  width: var(--size);
  height: var(--size);
  background: var(--fill, rgba(255, 255, 255, 0.08));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.04);
  transform: rotate(var(--rot));
  opacity: 0;
  animation: square-fall var(--duration) linear infinite;
  animation-delay: var(--delay);
  animation-fill-mode: both;
}

@keyframes square-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(var(--rot));
    opacity: 0;
  }
  4% {
    opacity: 0.4;
  }
  10% {
    opacity: 0.45;
  }
  90% {
    opacity: 0.45;
  }
  96% {
    opacity: 0.4;
  }
  100% {
    transform: translate3d(var(--drift), 120vh, 0) rotate(calc(var(--rot) + 720deg));
    opacity: 0;
  }
}

.login-container, .signup-container {
  position: relative;
  z-index: 1;
  background: var(--charcoal-slate);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  width: min(92vw, 520px);
  max-width: 520px;
  box-sizing: border-box;
  border: 1px solid rgba(201, 169, 97, 0.2);
}

.signup-form {
  width: 100%;
}

h2 {
  color: var(--text-bright);
  margin-bottom: 8px;
  font-weight: 600;
  text-align: center;
}

p {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 30px;
}

.input-group {
  margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
  width: 100%;
  padding: 12px 15px;
  background: var(--smoked-onyx);
  border: 1px solid rgba(168, 152, 128, 0.25);
  border-radius: 8px;
  color: var(--text-bright);
  font-size: 1rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {
  outline: none;
  border-color: var(--aged-brass);
}

input[type="radio"],
input[type="checkbox"] {
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  transform: scale(1);
}

.signup-btn, .login-btn {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1px solid var(--aged-brass);
  color: var(--aged-brass);
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.signup-btn:hover, .login-btn:hover {
  background: var(--aged-brass);
  color: var(--smoked-onyx);
  transform: translateY(-2px);
}

.footer-text, .forgot-link {
  margin-top: 25px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.footer-text a, .forgot-link a {
  color: var(--aged-brass);
  text-decoration: none;
}

.footer-text a:hover, .forgot-link a:hover {
  text-decoration: underline;
}

.signup-form {
  width: 100%;
}

h2 {
  color: var(--text-bright);
  margin-bottom: 8px;
  font-weight: 600;
  text-align: center;
}

p {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 30px;
}

.input-group {
  margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
  width: 100%;
  padding: 12px 15px;
  background: var(--smoked-onyx);
  border: 1px solid rgba(168, 152, 128, 0.25);
  border-radius: 8px;
  color: var(--text-bright);
  font-size: 1rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {
  outline: none;
  border-color: var(--aged-brass);
}

input[type="radio"],
input[type="checkbox"] {
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  transform: scale(1);
}

.signup-btn, .login-btn {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1px solid var(--aged-brass);
  color: var(--aged-brass);
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.signup-btn:hover, .login-btn:hover {
  background: var(--aged-brass);
  color: var(--smoked-onyx);
  transform: translateY(-2px);
}

.footer-text, .forgot-link {
  margin-top: 25px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.footer-text a, .forgot-link a {
  color: var(--aged-brass);
  text-decoration: none;
}

.footer-text a:hover, .forgot-link a:hover {
  text-decoration: underline;
}
@media (max-width: 520px) {
  .login-container, .signup-container {
    width: min(90vw, 420px);
    padding: 28px;
  }

  .signup-btn, .login-btn {
    padding: 12px;
    font-size: 0.95rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"] {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .input-group {
    margin-bottom: 16px;
  }
}
