/* PayQora - Auth pages (Login & Register) */

:root {
  --auth-primary: #1eea7a;
  --auth-primary-rgb: 30, 234, 122;
  --auth-card: #0f2c22;
  --auth-border: rgba(30, 234, 122, 0.25);
}

/* Page entrance */
.auth-page main > div {
  animation: authFadeIn 0.6s ease-out;
}

@keyframes authFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card */
.auth-page .auth-card {
  animation: authCardIn 0.5s ease-out 0.15s both;
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Input with left icon */
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap .auth-input-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--auth-primary);
  pointer-events: none;
  transition: transform 0.25s ease, color 0.25s ease;
}

.auth-input-wrap input {
  padding-left: 2.75rem;
  padding-right: 2.75rem;
  /* Ensure typed text is visible on any background */
  color: #0f172a;
  background-color: #fff;
}
.auth-input-wrap input::placeholder {
  color: #64748b;
}
.auth-input-wrap input:-webkit-autofill,
.auth-input-wrap input:-webkit-autofill:hover,
.auth-input-wrap input:-webkit-autofill:focus {
  -webkit-text-fill-color: #0f172a;
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
}

.auth-input-wrap.auth-input-password input {
  padding-right: 2.75rem;
}

.auth-input-wrap .auth-input-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  background: none;
  border: none;
  color: rgba(148, 163, 184, 0.9);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-input-wrap .auth-input-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  position: absolute;
}

.auth-input-wrap .auth-input-toggle:hover {
  color: var(--auth-primary);
  transform: translateY(-50%) scale(1.08);
}

.auth-input-wrap:focus-within .auth-input-icon {
  color: var(--auth-primary);
  transform: translateY(-50%) scale(1.05);
}

/* Primary button glow animation */
.auth-page .btn-primary {
  animation: authBtnGlow 3s ease-in-out infinite;
}

.auth-page .btn-primary:hover {
  animation: authBtnGlow 3s ease-in-out infinite;
  box-shadow: 0 0 28px rgba(var(--auth-primary-rgb), 0.5);
}

@keyframes authBtnGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(var(--auth-primary-rgb), 0.35); }
  50% { box-shadow: 0 0 26px rgba(var(--auth-primary-rgb), 0.45); }
}

/* Secure gateway line */
.auth-secure-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.auth-secure-line::before,
.auth-secure-line::after {
  content: '';
  flex: 1;
  max-width: 4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--auth-border));
}

.auth-secure-line::after {
  background: linear-gradient(90deg, var(--auth-border), transparent);
}

/* Footer security badges */
.auth-footer-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.auth-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.8125rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.auth-footer-badge:hover {
  color: var(--auth-primary);
}

.auth-footer-badge svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: var(--auth-primary);
  opacity: 0.9;
}

.auth-footer-badge:hover svg {
  animation: authBadgePulse 1.5s ease-in-out;
}

@keyframes authBadgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
