/* shop/auth.css — Login & Register Pages */

/* ==========================================================================
   CONTAINER
   ========================================================================== */

.auth-container {
  max-width: 420px;
  margin: 140px auto 60px;
  padding: 0 1.5rem;
}

/* ==========================================================================
   CARD
   ========================================================================== */

.auth-card {
  background: #0d1117;
  border: 1px solid rgba(212, 175, 55, 0.15);
  padding: 2.4rem 2rem;
  position: relative;
  background-image:
    linear-gradient(#d4af37, #d4af37),
    linear-gradient(#d4af37, #d4af37),
    linear-gradient(#d4af37, #d4af37),
    linear-gradient(#d4af37, #d4af37),
    linear-gradient(#d4af37, #d4af37),
    linear-gradient(#d4af37, #d4af37),
    linear-gradient(#d4af37, #d4af37),
    linear-gradient(#d4af37, #d4af37);
  background-repeat: no-repeat;
  background-size:
    20px 2px, 2px 20px,
    20px 2px, 2px 20px,
    20px 2px, 2px 20px,
    20px 2px, 2px 20px;
  background-position:
    0 0, 0 0,
    100% 0, 100% 0,
    0 100%, 0 100%,
    100% 100%, 100% 100%;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.auth-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(180deg, #F5E6A0 0%, #C9973E 60%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 0.4rem;
  text-align: center;
  width: 100%;
}

.auth-subtitle {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  color: #9A7EB0;
  letter-spacing: 0.12em;
  text-align: center;
  margin: 0 0 2rem 0;
}

/* ==========================================================================
   FORM FIELDS
   ========================================================================== */

.auth-field {
  margin-bottom: 1.2rem;
}

.auth-field label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b7fa8;
  display: block;
  margin-bottom: 0.4rem;
}

.auth-field input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 4px;
  color: #e0d8ec;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.auth-field input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.auth-field input:focus {
  outline: none;
  border-color: #00e5ff;
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.15);
}

.auth-field input.invalid {
  border-color: #ff4d4d;
  box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.15);
}

.auth-error {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  color: #ff4d4d;
  margin-top: 0.3rem;
  display: block;
  min-height: 1em;
}

/* ==========================================================================
   FORM ERROR
   ========================================================================== */

.auth-form-error {
  color: #ff4d4d;
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
}

.auth-hidden {
  display: none !important;
}

/* ==========================================================================
   BUTTON
   ========================================================================== */

.auth-btn {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, #d4af37, #f5e6a0);
  color: #0d1117;
  border: none;
  border-radius: 4px;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.3s ease, transform 0.15s ease;
  position: relative;
}

.auth-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.auth-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.auth-spinner {
  border: 2px solid rgba(13, 17, 23, 0.2);
  border-left-color: #0d1117;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: auth-spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes auth-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   SWITCH LINK
   ========================================================================== */

.auth-switch {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  color: #8b7fa8;
  text-align: center;
  margin-top: 1.5rem;
}

.auth-switch a {
  color: #d4af37;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-switch a:hover {
  color: #00e5ff;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .auth-container {
    margin-top: 110px;
    padding: 0 1rem;
  }

  .auth-card {
    padding: 1.8rem 1.4rem;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1.4rem 1rem;
  }
}
