/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

html,
body {
  font-family: "Plus Jakarta Sans", "Inter", "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  scroll-behavior: smooth;
  min-height: 100%;
  margin: 0;
  background: #f9fafb;
}

#app-root {
  min-height: 100%;
}

/* ── Auth shell ── */
.auth-shell {
  min-height: 100svh;
  display: flex;
  font-family: "Plus Jakarta Sans", "Inter", "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.auth-card {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  min-height: 100svh;
  background: #f0f2f8;
}

.auth-card-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: #f0f2f8;
}

.auth-card-form-inner {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.auth-card-brand {
  margin-bottom: 1.5rem;
}

.auth-card-cover {
  display: none;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #0f1629 0%, #1a2347 40%, #0f1629 100%);
}

.auth-form-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .auth-card {
    grid-template-columns: 60fr 40fr;
  }

  .auth-card-cover {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .auth-card-form {
    padding: 3rem 2rem;
  }
}

/* Fix for Firebase reCAPTCHA inside Radix UI Dialogs */
/* Radix UI sets pointer-events: none on body when dialog is open.
   The reCAPTCHA container is appended to body, inheriting this and becoming unclickable. */
body[data-scroll-locked] div[style*="z-index: 2000000000"],
body[style*="pointer-events: none"] div[style*="z-index: 2000000000"] {
  pointer-events: auto !important;
}

iframe[src*="recaptcha"] {
  pointer-events: auto !important;
}