/**
 * INRwallet - Login & Register Auth Pages
 * Same style for both, responsive
 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

.auth-page {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  padding: 20px;
  box-sizing: border-box;
}

.auth-page .auth-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.auth-page .auth-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.auth-page .auth-header {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  padding: 36px 28px;
  text-align: center;
  color: white;
}

.auth-page .auth-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
}

.auth-page .auth-header h1 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

.auth-page .auth-header p {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 8px 0 0;
}

.auth-page .auth-body {
  padding: 32px 28px;
}

.auth-page .form-group {
  margin-bottom: 20px;
}

.auth-page .form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.auth-page .input-wrap {
  position: relative;
}

.auth-page .input-wrap .prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 1;
}

.auth-page .input-wrap .icon-left {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #1e40af;
  font-size: 1rem;
  opacity: 0.85;
  z-index: 1;
  pointer-events: none;
}

.auth-page .input-wrap .toggle-pw {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 8px;
  z-index: 1;
}

.auth-page .input-wrap .toggle-pw:hover {
  color: #1e40af;
}

.auth-page .auth-input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: #f8fafc;
  transition: all 0.2s;
}

.auth-page .auth-input.with-prefix {
  padding-left: 72px;
}

.auth-page .auth-input.with-icon {
  padding-left: 48px;
  padding-right: 48px;
}

.auth-page .auth-input:focus {
  outline: none;
  border-color: #1e40af;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30,64,175,0.12);
}

.auth-page .auth-input::placeholder {
  color: #94a3b8;
}

.auth-page .form-error {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}

.auth-page .form-error.show {
  display: block;
}

.auth-page .forgot-wrap {
  margin-top: 10px;
  text-align: right;
}

.auth-page .forgot-link {
  font-size: 0.9rem;
  color: #1e40af;
  text-decoration: none;
  font-weight: 500;
}

.auth-page .forgot-link:hover {
  text-decoration: underline;
}

.auth-page .auth-footer-inline {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
}

.auth-page .auth-footer-inline a,
.auth-page .auth-footer-inline .auth-btn-small {
  color: #1e40af;
  text-decoration: none;
  font-weight: 500;
}

.auth-page .auth-footer-inline a:hover {
  text-decoration: underline;
}

.auth-page .auth-footer-inline .auth-btn-small {
  color: white !important;
}

.auth-page .auth-footer-inline .auth-btn-small:hover {
  text-decoration: none;
}

.auth-page .checkbox-wrap {
  display: flex;
  align-items: center;
  margin: 20px 0;
  gap: 12px;
}

.auth-page .checkbox-wrap input {
  width: 20px;
  height: 20px;
  accent-color: #1e40af;
  cursor: pointer;
}

.auth-page .checkbox-wrap label {
  margin: 0;
  font-weight: 500;
  color: #475569;
  font-size: 0.9rem;
  cursor: pointer;
}

.auth-page .auth-btn {
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-page .auth-btn:hover {
  opacity: 0.95;
  box-shadow: 0 6px 24px rgba(30,64,175,0.4);
  transform: translateY(-1px);
}

.auth-page .auth-btn.loading {
  opacity: 0.9;
  pointer-events: none;
}

.auth-page .auth-btn .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: auth-spin 0.7s linear infinite;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

.auth-page .auth-btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: white !important;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.auth-page .auth-btn-small i {
  font-size: 0.85em;
}

.auth-page .auth-btn-small:hover {
  opacity: 0.95;
  box-shadow: 0 4px 12px rgba(30,64,175,0.35);
}

.auth-page .auth-btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.auth-page .auth-btn-group .auth-btn-small {
  margin: 0;
}

.auth-page .auth-footer {
  padding: 20px 28px;
  background: #f8fafc;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}

.auth-page .auth-footer p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.auth-page .auth-footer a {
  color: #1e40af;
  font-weight: 600;
  text-decoration: none;
}

.auth-page .auth-footer a:hover {
  color: #1e3a8a;
  text-decoration: underline;
}

.auth-page .alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  border-left: 4px solid;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.auth-page .alert i {
  margin-top: 2px;
  flex-shrink: 0;
}

.auth-page .alert-error {
  background: rgba(220,38,38,0.08);
  color: #b91c1c;
  border-left-color: #dc2626;
}

.auth-page .alert-success {
  background: rgba(5,150,105,0.08);
  color: #065f46;
  border-left-color: #059669;
}

/* Responsive */
@media (max-width: 480px) {
  .auth-page {
    padding: 16px;
    align-items: center;
    justify-content: center;
  }

  .auth-page .auth-header {
    padding: 28px 20px;
  }

  .auth-page .auth-icon {
    width: 64px;
    height: 64px;
    font-size: 1.75rem;
  }

  .auth-page .auth-header h1 {
    font-size: 1.5rem;
  }

  .auth-page .auth-body {
    padding: 24px 20px;
  }

  .auth-page .form-group {
    margin-bottom: 18px;
  }

  .auth-page .auth-input {
    min-height: 48px;
    padding: 12px 14px;
    font-size: 16px; /* prevents zoom on iOS */
  }

  .auth-page .auth-input.with-prefix {
    padding-left: 68px;
  }

  .auth-page .auth-input.with-icon {
    padding-left: 44px;
    padding-right: 44px;
  }

  .auth-page .auth-btn {
    min-height: 48px;
    padding: 12px 16px;
  }

  .auth-page .auth-footer {
    padding: 16px 20px;
  }
}
