/* ========================================================================== */
/* Mobile Styles: style.css                                                   */
/* Loaded only on mobile/coarse pointers from HTML via media attribute.       */
/* ========================================================================== */

/* Touch devices: avoid heavy backdrop effects and particle layer */
@media (hover: none) and (pointer: coarse) {
  #particles-js {
    display: none;
  }

  html:not(.native-app),
  html:not(.native-app) * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* PWA update notification (mobile only; this stylesheet is conditionally loaded) */
#pwa-update-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(10px + env(safe-area-inset-top, 0px));
  z-index: 99999;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  background: rgba(16, 24, 39, 0.95);
  border: 1px solid rgba(0, 188, 212, 0.35);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  color: #fff;
}

#pwa-update-banner.is-visible {
  display: flex;
}

#pwa-update-banner .pwa-update-banner__text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.25;
  color: #E7F7FB;
}

#pwa-update-banner .pwa-update-banner__btn {
  height: 34px;
  min-width: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
}

#pwa-update-banner .pwa-update-banner__btn--primary {
  border-color: rgba(0, 188, 212, 0.55);
  background: rgba(0, 188, 212, 0.18);
}

#pwa-update-banner .pwa-update-banner__btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Phones */
@media (max-width: 480px) {
  .auth-card {
    padding: 2rem 1.5rem;
    margin: 0.5rem;
  }

  .phone-country-chip {
    padding: 0 0.5rem;
    font-size: 0.76rem;
  }

  .phone-country-code {
    padding: 0;
    font-size: 0.74rem;
  }

  .phone-entry-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .phone-entry-row #btn-get-code {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 0.85rem;
    align-self: stretch;
    justify-content: center;
    font-size: 0.9rem;
    border-radius: 0.8rem;
  }

  .relationship-status {
    grid-template-columns: 1fr;
  }

  .form-section {
    padding: 1rem;
  }

  .section-title {
    font-size: 0.95rem;
  }

  .verified-phone-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .image-preview-container {
    width: 100px;
    height: 100px;
  }

  .logo-container img {
    height: 6rem;
  }

  .page-title {
    font-size: 1.25rem;
  }
}

/* Extra small phones */
@media (max-width: 360px) {
  .auth-card {
    padding: 1.5rem 1rem;
  }

  .phone-entry-row #btn-get-code {
    height: 44px;
    font-size: 0.86rem;
    padding: 0 0.7rem;
  }

  .content-wrapper {
    padding: 0.5rem;
  }
}
