.lpag-protected-shell,
.lpag-auth {
  box-sizing: border-box;
}

.lpag-protected-shell {
  max-width: 720px;
  margin: 40px auto;
  padding: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
}

.lpag-auth {
  width: 100%;
/*   max-width: 520px; */
  margin: 0 auto;
  padding: 0;
  color: #111827;
  font-family: inherit;
}

.lpag-auth *,
.lpag-auth *::before,
.lpag-auth *::after {
  box-sizing: border-box;
}

.lpag-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.lpag-tab,
.lpag-open-popup,
.lpag-form button[type="submit"],
.lpag-primary-link {
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.lpag-tab {
  background: #f3f4f6;
  color: #374151;
}

.lpag-tab.is-active,
.lpag-open-popup,
.lpag-form button[type="submit"],
.lpag-primary-link {
  display: inline-block;
  background-color: transparent;
  color: var(--e-global-color-c3d08c0);
  background-image: linear-gradient(90deg, #1C7A8C 0%, #145374 100%);
}

.lpag-tab.is-active {
    box-shadow: 2px 2px 4px #4d90fe;
    border: 2px solid #83bfd599;
}

.lpag-form {
  display: grid;
  gap: 14px;
}

.lpag-form h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.lpag-form p {
  margin: 0 0 4px;
}

.lpag-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.lpag-form input,
.lpag-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

.lpag-form textarea {
  min-height: 88px;
  resize: vertical;
}

.lpag-form input:focus,
.lpag-form textarea:focus {
  outline: 2px solid #111827;
  outline-offset: 1px;
}

.lpag-form button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.lpag-link-button {
  cursor: pointer;
  border: 0;
  background: transparent;
  color: #111827;
  text-decoration: underline;
  font-weight: 700;
  padding: 4px;
  justify-self: start;
}

.lpag-message {
  display: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f3f4f6;
}

.lpag-message:not(:empty) {
  display: block;
}

.lpag-message.is-success {
  background: #ecfdf5;
  color: #065f46;
}

.lpag-message.is-error {
  background: #fef2f2;
  color: #991b1b;
}

.lpag-message.is-info {
  background: #eff6ff;
  color: #1e40af;
}

.lpag-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lpag-modal.is-open {
  display: flex;
}

.lpag-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
}

.lpag-modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

.lpag-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.lpag-auth-logged-in {
  text-align: center;
}

@media (max-width: 600px) {
  .lpag-protected-shell,
  .lpag-modal-card {
    padding: 20px;
  }

  .lpag-tabs button{
    width: 50%;
  }
}


.lpag-password-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.lpag-password-wrapper input {
    width: 100%;
    padding-right: 48px !important;
    box-sizing: border-box;
}

.lpag-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 42px !important;
    height: 36px !important;
    min-width: 36px;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #666 !important;
    cursor: pointer !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

.lpag-password-toggle:hover,
.lpag-password-toggle:focus {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #111;
    outline: none;
}

.lpag-password-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 1px;
}

.lpag-password-toggle svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
    pointer-events: none;
}

.lpag-password-toggle .lpag-eye-hide {
    display: none;
}

.lpag-password-toggle.is-visible .lpag-eye-show {
    display: none;
}

.lpag-password-toggle.is-visible .lpag-eye-hide {
    display: block;
}