/* One fixed canvas for the public entry, the customer area and its dialogs. */
:root:has(.public-account-entry, .client-booking-page) {
  --sc-edge: #f1eee7;
  --sc-wash: #dbc69254;
  --sc-curve: #bba47138;
  --sc-far: #e6e8ea;
  --sc-surface: #fbfaf7;
  --sc-field: #f0eee9;
  --sc-border: #d9d6cf;
  --sc-ink: #292824;
  --sc-muted: #65635c;
  --entry-gold: linear-gradient(#b28a39, #987020 48%, #805b18);
  color-scheme: light;
  background: var(--sc-edge) !important;
}
:root[data-client-theme=dark]:has(.public-account-entry, .client-booking-page) {
  --sc-edge: #191a1c;
  --sc-wash: #a8834330;
  --sc-curve: #b79e6426;
  --sc-far: #111519;
  --sc-surface: #202124;
  --sc-field: #292b2e;
  --sc-border: #3d3f43;
  --sc-ink: #f2f0ec;
  --sc-muted: #b8b5af;
  --entry-gold: linear-gradient(#f1d796, #dbb65e 48%, #bb8e39);
  color-scheme: dark;
}
:root:has(.public-account-entry, .client-booking-page) body {
  isolation: isolate;
  background: var(--sc-edge) !important;
}
:root:has(.public-account-entry, .client-booking-page) body::before {
  content: "";
  display: block;
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100lvh;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--sc-edge), transparent 68px, transparent calc(100% - 72px), var(--sc-edge)),
    radial-gradient(ellipse 100% 80% at -8% -18%, transparent 58%, var(--sc-curve) 58.3%, transparent 60%),
    radial-gradient(ellipse 110% 80% at 110% 108%, transparent 58%, var(--sc-curve) 58.3%, transparent 60%),
    radial-gradient(ellipse 70% 68% at 0 8%, var(--sc-wash), transparent 74%),
    linear-gradient(145deg, var(--sc-edge) 20%, var(--sc-far));
  background-repeat: no-repeat;
}
:root:has(.public-account-entry, .client-booking-page) body::after { content: none; }
:root .login-page:is(.public-account-entry, .client-booking-page) { background: transparent !important; }
:root .login-page:is(.public-account-entry, .client-booking-page)::before { display: none; }
:root[data-client-theme] :is(.public-account-entry, .client-booking-page),
:root[data-client-theme]:has(.client-booking-page) :is(.client-schedule-dialog, .dispatch-group-dialog, .booking-review-dialog) {
  --card: var(--sc-surface);
  --border: var(--sc-border);
  --muted: var(--sc-field);
  --foreground: var(--sc-ink);
  --muted-foreground: var(--sc-muted);
}
:root:has(.public-account-entry, .client-booking-page)
:is(.public-account-entry > .login-card, .public-account-entry > .introduction-card, .client-booking-page > .portal-welcome,
    .client-schedule-dialog[data-slot=dialog-content], .booking-review-dialog[data-slot=dialog-content], .dispatch-group-dialog[data-slot=dialog-content]) {
  background: var(--sc-surface) linear-gradient(to bottom, color-mix(in srgb, var(--sc-edge) 42%, var(--sc-surface)), var(--sc-surface) 88px) no-repeat !important;
  color: var(--sc-ink);
  border-color: var(--sc-border) !important;
}

@media (max-width: 600px) {
  .public-account-entry .access-top {
    gap: 12px;
    padding-inline: 4px;
  }
  .public-account-entry .access-top > a {
    display: block;
    width: 94px;
    height: 36px;
    flex: none;
    font-size: 0;
    background: var(--entry-gold);
    mask: url('../media/layout-20261102/sc-senhas-alpha-v6.png') center / contain no-repeat;
  }
  .public-account-entry .access-top > a > span { display: none; }
  .public-account-entry .access-appearance button { min-width: 36px; min-height: 36px; }
  .public-account-entry .access-appearance button span { display: none; }
  .public-account-entry.site-introduction .introduction-card > header { margin-bottom: 20px; }
  .public-account-entry.site-introduction .welcome-features { gap: 14px; padding-bottom: 18px; }
  .public-account-entry.site-introduction .introduction-card > footer { margin-top: 18px; }
}

@media (max-width: 600px) {
  .login-page.unified-access.public-account-entry {
    justify-content: flex-start;
    padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
    gap: 12px;
  }
  .public-account-entry .access-top { margin-bottom: 0; }
  .public-account-entry .access-top > a {
    width: 84px;
    height: 40px;
  }
  .public-account-entry .client-auth-brand .login-brand {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }
}
