/* Admin sign-in experience. Scoped so other shells keep their existing layout. */
[data-auth-shell="admin"].auth-wrap {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  padding: clamp(24px, 5vw, 72px);
  background:
    radial-gradient(900px 540px at -6% -10%, rgba(52, 211, 153, .18), transparent 62%),
    radial-gradient(760px 520px at 106% 110%, rgba(15, 118, 110, .12), transparent 64%),
    #f4f7f8;
}

[data-auth-shell="admin"].auth-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .28;
  background-image: radial-gradient(circle, rgba(15, 118, 110, .20) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(135deg, #000, transparent 44%, transparent 68%, #000);
}

.auth-frame-admin {
  position: relative;
  width: min(920px, 100%);
  min-height: 548px;
  display: grid;
  grid-template-columns: minmax(300px, .84fr) minmax(430px, 1.16fr);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 28px;
  background: #fff;
  box-shadow:
    0 28px 80px rgba(15, 23, 42, .12),
    0 4px 18px rgba(15, 23, 42, .06);
}

.auth-brand-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 40px 38px;
  color: #0f2530;
  background:
    radial-gradient(420px 300px at 88% 80%, rgba(52, 211, 153, .28), transparent 68%),
    linear-gradient(150deg, #ecfdf8 0%, #dff8f0 52%, #d8f2eb 100%);
  border-right: 1px solid rgba(15, 118, 110, .10);
}

.auth-brand-panel::before,
.auth-brand-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(15, 118, 110, .13);
  border-radius: 50%;
}

.auth-brand-panel::before {
  width: 320px;
  height: 320px;
  right: -146px;
  bottom: -118px;
}

.auth-brand-panel::after {
  width: 220px;
  height: 220px;
  right: -94px;
  bottom: -68px;
}

.auth-brand-lockup {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}

.auth-brand-logo,
.auth-mobile-logo {
  display: grid;
  flex: 0 0 auto;
}

.auth-brand-logo {
  width: 72px;
  height: 72px;
}

.auth-brand-logo img,
.auth-mobile-logo img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-brand-name {
  display: grid;
  gap: 2px;
}

.auth-brand-name strong {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.auth-brand-name span {
  color: #39706a;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .18em;
}

.auth-brand-visual {
  position: relative;
  z-index: 1;
  width: 260px;
  height: 260px;
  align-self: center;
  margin: 8px 0 2px;
}

.auth-brand-visual span {
  position: absolute;
  inset: 50%;
  border: 1px solid rgba(15, 118, 110, .17);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.auth-brand-visual span:nth-child(1) { width: 238px; height: 238px; }
.auth-brand-visual span:nth-child(2) { width: 164px; height: 164px; }
.auth-brand-visual span:nth-child(3) {
  width: 82px;
  height: 82px;
  border: 0;
  background: linear-gradient(145deg, #34d399, #178d77);
  box-shadow: 0 18px 45px rgba(15, 118, 110, .24);
}

.auth-brand-visual span:nth-child(3)::after {
  content: "A!";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.08em;
}

.auth-brand-visual i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #238a73;
  box-shadow: 0 0 0 6px rgba(35, 138, 115, .10);
}

.auth-brand-visual i:nth-of-type(1) { top: 33px; left: 74px; }
.auth-brand-visual i:nth-of-type(2) { right: 26px; top: 132px; width: 7px; height: 7px; }
.auth-brand-visual i:nth-of-type(3) { left: 37px; bottom: 47px; width: 7px; height: 7px; }

.auth-brand-rule {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-brand-rule span {
  width: 44px;
  height: 3px;
  border-radius: 99px;
  background: #22b98e;
}

.auth-brand-rule b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(15, 118, 110, .40);
}

.auth-card.auth-card-admin {
  width: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 62px 48px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.auth-card-admin .auth-card-heading {
  margin-bottom: 25px;
}

.auth-card-admin .auth-kicker {
  display: block;
  margin-bottom: 10px;
  color: #0f8a77;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .17em;
}

.auth-card-admin .auth-card-heading h1 {
  margin: 0;
  color: #111b2e;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.auth-card-admin .auth-card-heading p {
  margin: 9px 0 0;
  color: #718096;
  font-size: 14px;
}

.auth-card-admin form {
  display: grid;
  gap: 16px;
}

.auth-card-admin .auth-field {
  display: grid;
  gap: 7px;
}

.auth-card-admin .auth-field label {
  margin: 0;
  color: #26364a;
  font-size: 13px;
  font-weight: 650;
}

.auth-card-admin .auth-field input {
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #d8e1e7;
  border-radius: 11px;
  background: #f9fbfb;
  color: #111b2e;
  font-size: 14px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.auth-card-admin .auth-field input:hover {
  border-color: #bdcbc9;
  background: #fff;
}

.auth-card-admin .auth-field input:focus {
  outline: 0;
  border-color: #20a989;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(32, 169, 137, .12);
}

.auth-card-admin .auth-field input::placeholder {
  color: #a0adb9;
}

.auth-card-admin .auth-submit {
  min-height: 48px;
  margin: 2px 0 0;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #149b83, #0f766e);
  box-shadow: 0 10px 24px rgba(15, 118, 110, .20);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.auth-card-admin .auth-submit:hover:not(:disabled) {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 13px 28px rgba(15, 118, 110, .24);
}

.auth-card-admin .auth-submit:active:not(:disabled) {
  transform: translateY(0);
}

.auth-card-admin .auth-reset-action {
  margin: 0;
  text-align: center;
  font-size: 13px;
}

.auth-card-admin .auth-reset-action a {
  color: #0f8173;
  text-decoration: none;
}

.auth-card-admin .auth-reset-action a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-card-admin .msg {
  min-height: 20px;
  margin: -3px 0 0;
  font-size: 13px;
  text-align: center;
}

.auth-mobile-brand {
  display: none;
}

.auth-card-admin.auth-card-setup {
  justify-content: center;
}

html[data-theme="dark"] [data-auth-shell="admin"].auth-wrap {
  background:
    radial-gradient(900px 540px at -6% -10%, rgba(52, 211, 153, .10), transparent 62%),
    radial-gradient(760px 520px at 106% 110%, rgba(20, 184, 166, .08), transparent 64%),
    #07131c;
}

html[data-theme="dark"] [data-auth-shell="admin"].auth-wrap::before {
  opacity: .18;
  background-image: radial-gradient(circle, rgba(94, 234, 212, .20) 1px, transparent 1px);
}

html[data-theme="dark"] .auth-frame-admin {
  border-color: rgba(148, 163, 184, .16);
  background: #0f1f2a;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .36);
}

html[data-theme="dark"] .auth-brand-panel {
  color: #eefcf8;
  border-right-color: rgba(94, 234, 212, .10);
  background:
    radial-gradient(420px 300px at 88% 80%, rgba(52, 211, 153, .13), transparent 68%),
    linear-gradient(150deg, #0b302e 0%, #0b272a 54%, #0c2027 100%);
}

html[data-theme="dark"] .auth-brand-name span {
  color: #8ec8ba;
}

html[data-theme="dark"] .auth-brand-panel::before,
html[data-theme="dark"] .auth-brand-panel::after,
html[data-theme="dark"] .auth-brand-visual span {
  border-color: rgba(94, 234, 212, .14);
}

html[data-theme="dark"] .auth-card.auth-card-admin {
  background: #111f2a;
}

html[data-theme="dark"] .auth-card-admin .auth-card-heading h1,
html[data-theme="dark"] .auth-card-admin .auth-field label {
  color: #f2f7f8;
}

html[data-theme="dark"] .auth-card-admin .auth-card-heading p {
  color: #92a5b3;
}

html[data-theme="dark"] .auth-card-admin .auth-field input {
  border-color: #314451;
  background: #0b1821;
  color: #f2f7f8;
}

html[data-theme="dark"] .auth-card-admin .auth-field input:hover,
html[data-theme="dark"] .auth-card-admin .auth-field input:focus {
  background: #0d1b24;
}

@media (max-width: 760px) {
  [data-auth-shell="admin"].auth-wrap {
    padding: 18px;
  }

  .auth-frame-admin {
    width: min(460px, 100%);
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .auth-brand-panel {
    display: none;
  }

  .auth-card.auth-card-admin {
    padding: 34px 28px 28px;
  }

  .auth-mobile-brand {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    margin-bottom: 30px;
  }

  .auth-mobile-logo {
    grid-row: 1 / 3;
    width: 44px;
    height: 44px;
  }

  .auth-mobile-brand strong {
    align-self: end;
    color: #111b2e;
    font-size: 17px;
    line-height: 1.2;
  }

  .auth-mobile-brand > span:last-child {
    align-self: start;
    color: #718096;
    font-size: 12px;
  }

  html[data-theme="dark"] .auth-mobile-brand strong {
    color: #f2f7f8;
  }

  html[data-theme="dark"] .auth-mobile-brand > span:last-child {
    color: #92a5b3;
  }

  .auth-card-admin .auth-card-heading h1 {
    font-size: 27px;
  }
}

@media (max-height: 700px) and (min-width: 761px) {
  [data-auth-shell="admin"].auth-wrap {
    padding-block: 20px;
  }

  .auth-frame-admin {
    min-height: 500px;
  }

  .auth-card.auth-card-admin {
    padding-block: 40px 34px;
  }

  .auth-brand-visual {
    width: 220px;
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card-admin .auth-field input,
  .auth-card-admin .auth-submit {
    transition: none;
  }
}
