/* ============================================
   JovoPay Auth Styles
   Colors from Logo: Blue #2563EB → Purple #7C3AED → Magenta #C026D3
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #ffffff;
  color: #000000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}



.icon {
  display: block;
}

.spinner {
  animation: spin 1s linear infinite;
  margin-right: 8px;
}


/* Main Container */
.main-container {
  flex: 1;
  padding: 40px 20px 64px;
  max-width: 448px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 32px;
}

.header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 8px;
}

.header p {
  font-size: 14px;
  color: #4b4b4b;
  margin-top: 8px;
}


/* Brand / Logo */
.brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;  /* Increased spacing below logo */
}
.brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.field-hint {
    display: none !important;
}
/*.brand-logo {*/
        /* Larger size for prominent branding on auth page */
        /*height: 80px;  */
         /* Square aspect ratio for 800x800 logo */
         /*width: 80px;  */
/*  max-width: 80px;*/
/*  object-fit: contain;*/
/*}*/
/* Optional: tighter spacing on small screens */
/*@media (max-width: 480px) {*/
/*  .brand {*/
/*    margin-bottom: 1rem;*/
/*  }*/
/*  .brand-logo {*/
/*    height: 64px;*/
/*    width: 64px;*/
/*    max-width: 64px;*/
/*  }*/
/*}*/

/* Form Container */
.form-container {
  position: relative;
  /*min-height: 400px;*/
  flex-grow: 1;
}

/* Form Steps */
.form-step {
  transition: all 0.5s ease;
  opacity: 0;
  transform: translateY(30px);
  position: absolute;
  width: 100%;
  left: 0;
  right: 0;
  top: 0;
  pointer-events: none;
}

.form-step.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Form Groups */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #111827;
}

.relative {
  position: relative;
}

/* Input Fields */
.input-field {
  background-color: #F3F3F5;
  border-radius: 8px;
  padding: 16px;
  width: 100%;
  border: 1px solid transparent;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.input-field:focus {
  border-color: #2563EB;
  outline: none;
}

.input-field.error {
  border-color: #FF3B30;
}

.input-field::placeholder {
  color: #9ca3af;
}

.pr-10 {
  padding-right: 40px;
}

/* Toggle Password Button */
.toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-btn:hover {
  color: #374151;
}

.eye-icon {
  display: block;
}

/* Error Messages */
.error-message {
  color: #FF3B30;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.error-message.visible {
  display: block;
}

.general-error {
  text-align: center;
  margin-bottom: 16px;
}

/* Submit Button */
.submit-btn {
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 50%, #C026D3 100%);
  color: white;
  border-radius: 9999px;
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Alternative Link */
.alt-link {
  margin-top: 32px;
  margin-bottom: 100px;
  text-align: center;
}

.alt-link p {
  font-size: 14px;
  color: #4b4b4b;
}

.alt-link a {
  color: #2563EB;
  font-weight: 500;
  text-decoration: none;
}

.alt-link a:hover {
  text-decoration: underline;
}

/* Success Step */
.success-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: white;
  animation: successPulse 1.5s ease-in-out;
}

@keyframes successPulse {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.success-container h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 8px;
}

.success-container p {
  color: #4b4b4b;
  text-align: center;
  margin-bottom: 32px;
}

/* Loading Indicator */
.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.loading-indicator p {
  margin: 0;
  margin-left: 8px;
  font-size: 14px;
  color: #4b4b4b;
}

.loading-dot {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  border-radius: 50%;
  animation: loadingDot 1.4s infinite ease-in-out both;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes loadingDot {
  0%, 80%, 100% { transform: scale(0); } 
  40% { transform: scale(1); }
}

/* Disclaimer */
.disclaimer {
  font-size: 12px;
  text-align: center;
  color: #4b4b4b;
  margin-top: auto;
  line-height: 1.5;
}

.disclaimer a {
  color: #2563EB;
  font-weight: 500;
  text-decoration: none;
}

.disclaimer a:hover {
  text-decoration: underline;
}

/* Focus visible */
*:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}




/* Additional styles for login page */

.forgot-link {
    font-size: 14px;
    color: #2563EB;
    text-decoration: none;
    font-weight: 500;
}

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

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-warning {
    background-color: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
    text-align: center;
}

.alert.hidden {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spinner animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* register page accessibility + status */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.focusable:focus,
.focusable:active {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  clip: auto !important;
  white-space: normal !important;
}

.status-message[hidden] {
  display: none !important;
}

.status-message.visible,
.error-message.visible,
.general-error.visible {
  display: block;
}

.field-hint {
  font-size: 0.92rem;
  line-height: 1.4;
  margin-top: 0.35rem;
  opacity: 0.88;
}

.honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.noscript-message {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #fff8e1;
  color: #6b4f00;
  font-size: 0.95rem;
}

.input-field[aria-invalid="true"] {
  outline: 2px solid rgba(220, 38, 38, 0.2);
  outline-offset: 1px;
}

.input-field:focus-visible,
.toggle-btn:focus-visible,
.submit-btn:focus-visible,
.brand-link:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

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

.submit-btn.is-loading .btn-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spinner-icon {
  animation: jovo-spin 1s linear infinite;
}

@keyframes jovo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}












