/* Auth Common Styles - Shared across all auth pages */

/* Layout Styles */
.auth-card[data-card-height="cover"] {
  min-height: 100vh;
  margin: 0;
  border-radius: 0;
}

.auth-card-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 10;
}

.auth-card-center {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 10;
  padding: 0 3rem;
}

.auth-notch-clear {
  padding-top: env(safe-area-inset-top);
}

/* Icon Styles */
.auth-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.auth-icon:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Typography */
.auth-font-800 {
  font-weight: 800;
}

.auth-font-900 {
  font-weight: 900;
}

.auth-font-700 {
  font-weight: 700;
}

.auth-font-40 {
  font-size: 40px;
}

.auth-font-30 {
  font-size: 30px;
}

.auth-font-24 {
  font-size: 24px;
}

.auth-font-14 {
  font-size: 14px;
}

.auth-font-12 {
  font-size: 12px;
}

.auth-font-11 {
  font-size: 11px;
}

.auth-font-10 {
  font-size: 10px;
}

/* Spacing */
.auth-mb-1 {
  margin-bottom: 0.25rem;
}

.auth-mb-2 {
  margin-bottom: 0.5rem;
}

.auth-mb-3 {
  margin-bottom: 1rem;
}

.auth-mb-4 {
  margin-bottom: 1.5rem;
}

.auth-mb-5 {
  margin-bottom: 3rem;
}

.auth-mt-1 {
  margin-top: 0.25rem;
}

.auth-mt-2 {
  margin-top: 0.5rem;
}

.auth-mt-4 {
  margin-top: 1.5rem;
}

.auth-mt-5 {
  margin-top: 3rem;
}

.auth-mt-n2 {
  margin-top: -0.5rem;
}

.auth-pt-2 {
  padding-top: 0.5rem;
}

.auth-pt-3 {
  padding-top: 1rem;
}

.auth-pt-4 {
  padding-top: 1.5rem;
}

.auth-pb-2 {
  padding-bottom: 0.5rem;
}

.auth-py-4 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/* Logo */
.auth-logo {
  width: 120px;
  height: auto;
  max-width: 100%;
}

/* Form Styles */
.auth-input-style {
  position: relative;
  margin-bottom: 15px;
  background: transparent;
}

.auth-input-style.has-icon i:first-child {
  position: absolute;
  top: 50%;
  left: 0px;
  width: 10px;
  text-align: center;
  margin-top: -8px;
  color: #666;
  z-index: 10;
  pointer-events: none;
  font-size: 14px;
}

.auth-input-style .valid,
.auth-input-style .invalid {
  position: absolute;
  top: 50%;
  margin-top: -5px;
  right: 5px;
  pointer-events: none;
}

.auth-input-style.validate-field input.is-invalid + label + i.invalid {
  display: block !important;
}

.auth-input-style.validate-field input.is-valid + label + i.invalid + i.valid {
  display: block !important;
}

.auth-form-control {
  font-size: 12px;
  width: 100%;
  line-height: 45px;
  height: 45px;
  border-top-width: 0px;
  border-right-width: 0px;
  border-left-width: 0px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0px;
  padding-left: 25px;
  border-radius: 0px;
  background: transparent;
  color: var(--text-dark);
}

.auth-form-control:focus {
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
  outline: none;
}

/* Button Styles */
.auth-btn {
  border: none;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-btn-full {
  width: 100%;
  display: block;
}

.auth-btn-orange {
  background-color: var(--orange-primary);
  color: white;
}

.auth-btn-orange:hover:not(:disabled) {
  background-color: var(--orange-primary-dark);
  transform: translateY(-1px);
}

.auth-btn-center-xl {
  margin: 0 auto;
  display: block;
  min-width: 200px;
}

.auth-btn-center-l {
  margin: 0 auto;
  display: block;
  min-width: 150px;
}

.auth-shadow-large {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Color Utilities */
.auth-color-theme {
  color: var(--text-color);
}

.auth-color-highlight {
  color: var(--orange-primary);
}

.auth-color-blue-dark {
  color: var(--blue-dark);
}

.auth-color-red-dark {
  color: var(--red-dark);
}

.auth-color-green-dark {
  color: var(--green-dark);
}

.auth-color-yellow-dark {
  color: var(--yellow-dark);
}

.auth-color-orange {
  color: var(--orange-primary);
}

/* Theme Utilities */
.auth-show-on-theme-light {
  display: block;
}

.auth-show-on-theme-dark {
  display: none;
}

.auth-text-center {
  text-align: center;
}

/* OTP Styles */
.auth-otp-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
}

.auth-otp {
  width: 50px;
  height: 50px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  background: var(--white);
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.auth-otp:focus {
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
  outline: none;
}

.auth-otp:not(:placeholder-shown) {
  border-color: var(--orange-primary);
  background-color: rgba(245, 158, 11, 0.1);
}

/* PIN Styles */
.auth-pin-display {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 30px 0;
}

.auth-pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #e5e7eb;
  transition: all 0.3s ease;
}

.auth-pin-dot.filled {
  background-color: var(--orange-primary);
}

/* Number Pad */
.auth-number-pad {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.auth-number-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.auth-number-pad-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--white);
  border: 2px solid #e5e7eb;
  color: var(--text-dark);
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-number-pad-btn:hover {
  background-color: var(--orange-primary);
  color: white;
  border-color: var(--orange-primary);
}

.auth-number-pad-btn:active {
  transform: scale(0.95);
}

.auth-number-pad-btn.invisible {
  visibility: hidden;
}

.auth-backspace-btn i {
  font-size: 20px;
}

/* Modal Styles */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal .content {
  background: var(--white);
  border-radius: 16px;
  margin: 20px;
  max-width: 300px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.auth-fa-6x {
  font-size: 6em;
}

.auth-scale-box {
  animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Validation styling */
.auth-disabled {
  display: none;
}

.auth-input-style.validate-field input.is-invalid + label + i.invalid {
  display: block !important;
}

.auth-input-style.validate-field input.is-valid + label + i.invalid + i.valid {
  display: block !important;
}

.auth-input-style em {
  font-size: 10px;
  color: #999;
  font-style: normal;
  margin-left: 5px;
}

/* Link styling */
.auth-link {
  color: var(--orange-primary);
  text-decoration: none;
}

.auth-link:hover {
  color: var(--orange-primary-dark);
  text-decoration: underline;
}

/* Dark theme styles */
:global(.theme-dark) .auth-show-on-theme-light {
  display: none;
}

:global(.theme-dark) .auth-show-on-theme-dark {
  display: block;
}

:global(.theme-dark) .auth-form-control {
  background: #2d2d2d;
  color: var(--white);
  border-color: #444;
}

:global(.theme-dark) .auth-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

:global(.theme-dark) .auth-otp {
  background: #2d2d2d;
  color: var(--white);
  border-color: #444;
}

:global(.theme-dark) .auth-otp:focus {
  border-color: var(--orange-primary);
}

:global(.theme-dark) .auth-otp:not(:placeholder-shown) {
  border-color: var(--orange-primary);
  background-color: rgba(245, 158, 11, 0.2);
}

:global(.theme-dark) .auth-number-pad-btn {
  background-color: #374151;
  border-color: #4b5563;
  color: var(--white);
}

:global(.theme-dark) .auth-number-pad-btn:hover {
  background-color: var(--orange-primary);
  border-color: var(--orange-primary);
}

:global(.theme-dark) .auth-pin-dot {
  background-color: #4b5563;
}

:global(.theme-dark) .auth-pin-dot.filled {
  background-color: var(--orange-primary);
}

:global(.theme-dark) .auth-modal .content {
  background: #2d2d2d;
  color: var(--white);
}

:global(.theme-dark) .auth-link {
  color: var(--orange-primary);
}