/* Single-panel, branded administration sign-in. */
.access-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 28px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fffefa;
}
.access-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(255, 254, 250, .15) 0 24%, rgba(250, 244, 232, .25) 57%, rgba(241, 225, 201, .43) 100%),
    url("/assets/syria-architecture-linework.webp") center / cover no-repeat;
}
.access-form-side { width: min(100%, 540px); min-height: 0; display: block; position: relative; padding: 0; background: transparent; }
.access-brand { display: block; width: min(178px, 46vw); margin: 0 auto 24px; }
.access-brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 5px 12px rgba(18, 51, 38, .14));
}
.access-card { width: min(100%, 410px); margin: 0 auto; padding: 34px; border: 1px solid rgba(232, 212, 172, .48); color: #fff; background: linear-gradient(rgba(3, 71, 47, .97), rgba(3, 54, 36, .98)), var(--pattern) center / 420px auto; box-shadow: 0 26px 58px rgba(3, 46, 32, .26); }
.access-card .eyebrow { color: #dfcda9; }
.access-card h2 { color: #fff; }
.access-card .form-intro { color: rgba(255, 255, 255, .72); }
.access-card .access-tabs { border-color: rgba(232, 212, 172, .3); }
.access-card .access-tab { color: rgba(255, 255, 255, .62); }
.access-card .access-tab.is-active { border-bottom-color: #dfcda9; color: #fff; }
.access-card .access-form label { color: rgba(255, 255, 255, .82); }
.access-card .access-form input, .access-card .access-form select { border-color: rgba(232, 212, 172, .45); color: var(--green-950); background: rgba(255, 254, 250, .98); }
.access-card .access-form input:focus, .access-card .access-form select:focus { border-color: #dfcda9; box-shadow: 0 0 0 3px rgba(223, 205, 169, .2); }
.access-card .checkbox-label { color: rgba(255, 255, 255, .72) !important; }
.access-card .quiet-action { color: #dfcda9; }
.access-card .access-submit { color: var(--green-950); background: #e6d2a9; }
.access-card .access-submit:hover { color: #fff; background: #1d7551; box-shadow: 0 10px 22px rgba(0, 0, 0, .2); }
.access-card .prototype-note { border-color: rgba(232, 212, 172, .42); color: #f1e4cd; background: rgba(255, 255, 255, .08); }
.access-card .prototype-note .material-symbols-rounded { color: #dfcda9; }
.access-footer { width: min(100%, 410px); margin: 24px auto 0; color: var(--green-950); font-weight: 700; text-align: center; text-shadow: 0 1px rgba(255, 254, 250, .68); }
@media (max-width: 460px) {
  .access-page { padding: 32px 20px; }
  .access-card { padding: 27px 21px; }
  .access-brand { margin-bottom: 22px; }
}

/* Login night mode follows the public site's layered dark palette while keeping
   the login page's own centered composition. */
.access-theme {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  position: absolute;
  top: 18px;
  left: 64px;
  right: auto;
  z-index: 2;
  padding: 0;
  border: 1px solid rgba(232, 212, 172, .72);
  color: #fff;
  background: rgba(3, 46, 32, .2);
  cursor: pointer;
}
.access-theme .material-symbols-rounded { font-size: 18px; }
.access-card .language-switcher {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
 }
html[dir="ltr"] .access-card .access-theme { right: 64px; left: auto; }
.access-theme:hover, .access-theme:focus-visible { border-color: #f0d9a2; color: #f0d9a2; outline: 0; }

html.dark-theme { color-scheme: dark; }
html.dark-theme body, html.dark-theme .access-page { background: #071b12; }
html.dark-theme .access-page::before {
  background:
    radial-gradient(ellipse at center, rgba(7, 27, 18, .16) 0 23%, rgba(5, 26, 17, .46) 59%, rgba(3, 18, 12, .78) 100%),
    url("/assets/aleppo-architecture-night.webp") center / cover no-repeat;
}
html.dark-theme .access-brand {
  background: transparent;
  box-shadow: none;
}
html.dark-theme .access-brand img {
  filter: brightness(0) invert(1);
}
html.dark-theme .access-card {
  border-color: rgba(201, 169, 101, .64);
  background: linear-gradient(rgba(7, 45, 29, .97), rgba(5, 34, 23, .98)), url("/assets/aleppo-pattern-dark.webp") center / 420px auto;
  box-shadow: 0 26px 58px rgba(0, 0, 0, .42);
}
html.dark-theme .access-card .access-form input,
html.dark-theme .access-card .access-form select {
  border-color: #4a7658;
  color: #edf4e9;
  background: #0a2418;
}
html.dark-theme .access-card .access-form input::placeholder { color: #9fb59e; }
html.dark-theme .access-card .access-form input:focus,
html.dark-theme .access-card .access-form select:focus { border-color: #c9a965; box-shadow: 0 0 0 3px rgba(201, 169, 101, .16); }
html.dark-theme .access-card .access-submit { color: #102f20; background: #dfcda9; }
html.dark-theme .access-card .access-submit:hover { color: #fffdf7; background: #1d5a3a; }
html.dark-theme .access-card .prototype-note { border-color: #4a7658; color: #d7e1d4; background: #0d3825; }
html.dark-theme .access-footer { color: #c0d0bf; text-shadow: none; }
html.dark-theme .access-theme,
html.dark-theme .access-card .language-switcher { border-color: rgba(201, 169, 101, .72); background: rgba(6, 29, 19, .72); }
html.dark-theme .access-theme:hover,
html.dark-theme .access-theme:focus-visible { color: #f2dc9b; border-color: #f2dc9b; }

@media (max-width: 460px) {
  .access-theme { top: 14px; left: 56px; right: auto; }
  html[dir="ltr"] .access-card .access-theme { right: 56px; left: auto; }
}

/* The sign-in card heading is the page's only top-level heading, so it is an
   <h1>; these rules mirror the original .access-card h2 styling exactly. */
.access-card h1 { margin: 0 0 3px; font-size: 28px; line-height: 1.4; font-weight: 800; color: #fff; }
.form-options .form-note { color: rgba(255, 255, 255, .74); font-size: 9px; font-weight: 600; line-height: 1.7; }
