html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Input with button wrapper */
.input-with-button {
  position: relative;
}

/* Resend/Send OTP button styling */
.btn-resend {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: #ff8a00;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  white-space: nowrap;
}

.btn-resend:hover:not(:disabled) {
  color: #e57b00;
}

.btn-resend:disabled {
  color: #6c757d;
  text-decoration: none;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Ensure inputs with buttons have enough padding */
.input-with-button input[type="text"],
.input-with-button input[type="tel"],
.input-with-button input[type="email"] {
  padding-right: 120px;
}

/* For OTP input with resend button, need even more padding */
.input-with-button input[name="LinkRequest.Otp"] {
  padding-right: 140px;
}

/* SweetAlert2 Custom Styling */
.swal2-container-custom .swal2-popup {
  padding: 12px !important;
  width: 280px !important;
  border-radius: 12px !important;
}

.swal2-container-custom .swal2-icon {
  width: 3rem !important;
  height: 3rem !important;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 50% !important;
  margin-bottom: 8px !important;
}

.swal2-container-custom .swal2-icon-content {
  font-size: 2rem !important;
}

.swal2-container-custom .swal2-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
}

.swal2-container-custom .swal2-html-container {
  font-size: 13px !important;
  color: #4b5563 !important;
  line-height: 1.4 !important;
  margin-bottom: 0 !important;
}

.swal2-container-custom .swal2-icon.swal2-success {
  border-color: #10b981 !important;
  color: #10b981 !important;
}

.swal2-container-custom .swal2-icon.swal2-error {
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}
