/* LovyPay Admin — login + mobile responsive */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}
#app {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: hidden !important;
}

/* ========== MOBILE LOGIN ========== */
@media (max-width: 767.98px) {
  .h-screen {
    max-width: 100vw !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
  }

  /* Dark background: true center */
  .bg-hyperswitch_dark_bg,
  .bg-no-repeat.bg-center.bg-hyperswitch_dark_bg {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 20px 16px !important;
    box-sizing: border-box !important;
  }

  /* Outer column (was mobile:w-30-rem + justify-between) */
  .h-full.flex.flex-col.items-center.justify-between,
  .mobile\:w-30-rem {
    width: 100% !important;
    max-width: 340px !important;
    min-height: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    justify-content: center !important;
    gap: 14px !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  /* Content stack */
  .flex.flex-col.items-center.gap-6.flex-1,
  .flex.flex-col.items-center.gap-6 {
    flex: 0 1 auto !important;
    width: 100% !important;
    max-width: 340px !important;
    margin: 0 auto !important;
    gap: 10px !important;
  }
  .mobile\:my-20,
  .mt-4.mobile\:my-20 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* White login card */
  .bg-white.w-full.text-black,
  .bg-white.w-full.mobile\:border,
  .bg-white.mobile\:border.rounded-lg {
    width: 100% !important;
    max-width: 340px !important;
    margin: 0 auto !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* Card body */
  .p-7.flex.flex-col.gap-4,
  .p-7 {
    padding: 22px 18px 18px !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .px-7.py-6 {
    padding: 14px 18px !important;
  }

  .w-96,
  .w-80,
  .w-72,
  .min-w-96,
  .max-w-md,
  .max-w-lg {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .mb-7 {
    margin-bottom: 10px !important;
  }

  h1.font-semibold,
  h1.text-xl {
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
  }

  form.flex.flex-col,
  .flex.flex-col.gap-5 {
    gap: 12px !important;
  }
  .flex.flex-col.gap-3 {
    gap: 10px !important;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  input[type="email"],
  input[type="password"],
  input[type="text"],
  input:not([type]) {
    width: 100% !important;
    min-height: 42px !important;
    border-radius: 10px !important;
  }

  /* Continuar — smaller, centered, proportional */
  form button,
  form [role="button"],
  .flex.flex-col.gap-2 > button.bg-button-primary-bg,
  button.bg-button-primary-bg {
    width: auto !important;
    min-width: 148px !important;
    max-width: 180px !important;
    min-height: 38px !important;
    height: 38px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 4px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    align-self: center !important;
  }

  /* Button row wrapper */
  form .flex.flex-col.gap-2 {
    align-items: center !important;
    width: 100% !important;
  }

  /* Terms under card */
  .text-center.text-sm,
  #tc-text,
  [id="tc-text"],
  .justify-center.text-sm.mobile\:text-base {
    width: 100% !important;
    max-width: 340px !important;
    margin: 0 auto !important;
    padding: 0 6px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.45 !important;
    font-size: 12px !important;
  }

  #footer,
  [id="footer"] {
    width: 100% !important;
    max-width: 340px !important;
    margin: 6px auto 0 !important;
    justify-content: center !important;
    font-size: 12px !important;
    text-align: center !important;
  }

  .bg-hyperswitch_dark_bg a {
    word-break: break-word;
  }

  /* Dashboard */
  main,
  [class*="flex-1"] {
    min-width: 0 !important;
  }
  table {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;
  }
  .w-screen {
    max-width: 100vw !important;
  }
  .rounded-lg,
  .rounded-xl,
  .rounded-md {
    max-width: 100%;
    box-sizing: border-box;
  }
  .grid {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Extra-small phones */
@media (max-width: 360px) {
  .bg-hyperswitch_dark_bg {
    padding: 14px 12px !important;
  }
  .h-full.flex.flex-col.items-center.justify-between,
  .mobile\:w-30-rem,
  .bg-white.w-full.text-black {
    max-width: 100% !important;
  }
  form button,
  button.bg-button-primary-bg {
    min-width: 132px !important;
    max-width: 160px !important;
    height: 36px !important;
    min-height: 36px !important;
  }
  h1.font-semibold {
    font-size: 1.1rem !important;
  }
  .p-7 {
    padding: 18px 14px 14px !important;
  }
}
