.ag-body {
  min-height: 100dvh;
  margin: 0;
  background: #044f54;
  color: #10292b;
  font-family: "DM Sans", "Segoe UI", sans-serif;
}

.ag-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 520px at 12% -10%, color-mix(in srgb, #eef6f6 18%, transparent), transparent 60%),
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, #eef6f6 7%, transparent) 0 1px,
      transparent 1px 18px
    );
}

.ag-lockup {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1.1rem 1.2rem 0;
  color: #eef6f6;
  text-decoration: none;
}

.ag-lockup img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  object-fit: cover;
}

.ag-lockup span {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ag-lockup small {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.72;
}

.ag-main {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 1.25rem 1rem 2.5rem;
}

.ag-pass {
  width: min(100%, 28.5rem);
  background: #f7fbfb;
  box-shadow: 0 1.6rem 3.4rem rgb(2 18 20 / 0.28);
}

.ag-pass--wide { width: min(100%, 46rem); }

.ag-ribbon {
  display: flex;
  align-items: flex-end;
  gap: 0.9rem;
  min-height: 5.4rem;
  padding: 1rem 1.25rem 1.15rem;
  background: #044f54;
  color: #eef6f6;
}

.ag-ribbon img {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  object-fit: cover;
  outline: 3px solid color-mix(in srgb, #eef6f6 35%, transparent);
}

.ag-ribbon strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.ag-ribbon span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
}

.ag-body-card {
  padding: 1.35rem 1.25rem 1.5rem;
}

.ag-lead {
  margin: 0 0 1.1rem;
  color: #5a6e70;
  line-height: 1.5;
}

.ag-grid {
  display: grid;
  gap: 0.85rem 1rem;
}

.ag-grid--2 {
  grid-template-columns: 1fr 1fr;
}

.ag-field label {
  display: block;
  margin-bottom: 0.35rem;
  color: #044f54;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ag-field input,
.ag-field select {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid #c5d4d5;
  border-left: 3px solid #044f54;
  border-radius: 0;
  background: #eef6f6;
  color: #10292b;
  padding: 0.55rem 0.75rem;
  outline: none;
}

.ag-field input:focus,
.ag-field select:focus {
  background: #fff;
  border-color: #044f54;
}

.ag-phone {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(8.2rem, 0.75fr) minmax(0, 1.4fr);
}

.ag-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0 0.2rem;
  color: #5a6e70;
  font-size: 0.9rem;
}

.ag-error { margin: 0.35rem 0 0; color: #9f1239; font-size: 0.8rem; }

.ag-note {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.8rem;
  background: color-mix(in srgb, #044f54 8%, #f7fbfb);
  color: #044f54;
  font-size: 0.88rem;
}

.ag-go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 3.15rem;
  margin-top: 1.15rem;
  border: 0;
  background: #044f54;
  color: #eef6f6;
  padding: 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.ag-go:hover { filter: brightness(1.08); }

.ag-switch {
  margin: 1rem 0 0;
  text-align: center;
  color: #5a6e70;
  font-size: 0.9rem;
}

.ag-switch a {
  color: #044f54;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.ag-ghost {
  display: block;
  margin: 0.9rem auto 0;
  border: 0;
  background: none;
  color: #5a6e70;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .ag-grid--2,
  .ag-phone { grid-template-columns: 1fr; }
  .ag-lockup { margin: 0.85rem 0.9rem 0; }
  .ag-main { padding: 0.85rem 0.7rem 1.6rem; }
  .ag-body-card { padding: 1.1rem 0.95rem 1.25rem; }
}

/* Captcha — verification stub, not the old rounded widget */
.strong-captcha {
  margin: 1rem 0 0;
  padding: 0;
  border: 1px solid #044f54;
  border-radius: 0;
  background: #044f54;
  color: #eef6f6;
}

.strong-captcha__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  margin: 0;
  border-bottom: 1px solid color-mix(in srgb, #eef6f6 18%, transparent);
}

.strong-captcha__head strong {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #eef6f6;
}

.strong-captcha__refresh {
  border: 1px solid color-mix(in srgb, #eef6f6 40%, transparent);
  background: transparent;
  color: #eef6f6;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.28rem 0.5rem;
}

.strong-captcha__refresh:hover {
  text-decoration: none;
  background: color-mix(in srgb, #eef6f6 12%, transparent);
}

.strong-captcha__svg {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0.75rem;
  background: #03383c;
}

.strong-captcha__svg svg {
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

.strong-captcha__fields {
  display: grid;
  gap: 0;
  padding: 0.75rem;
  background: #f7fbfb;
}

.strong-captcha__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #044f54;
}

.strong-captcha input[name="captcha_code"] {
  width: 100%;
  min-height: 2.7rem;
  border: 1px solid #c5d4d5;
  border-left: 3px solid #044f54;
  border-radius: 0;
  background: #eef6f6;
  color: #10292b;
  padding: 0.45rem 0.7rem;
  outline: none;
}

.strong-captcha input[name="captcha_code"]:focus {
  border-color: #044f54;
  background: #fff;
}

.strong-captcha__hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.strong-captcha--livewire {
  margin: 1rem 0 0;
}

/* Modern auth shell: a quiet paper background, one focused card, and a real
   responsive rhythm. These rules intentionally replace the first-pass gate. */
:root {
  --ag-teal: #044f54;
  --ag-teal-deep: #03383c;
  --ag-paper: #ffffff;
  --ag-mist: #edf5f4;
  --ag-ink: #10292b;
  --ag-muted: #5a6e70;
  --ag-line: #c5d4d5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.ag-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--ag-mist);
  color: var(--ag-ink);
}

.ag-sky {
  background:
    radial-gradient(700px 360px at 92% 0%, rgb(4 79 84 / 0.15), transparent 68%),
    linear-gradient(135deg, rgb(255 255 255 / 0.72), transparent 46%),
    repeating-linear-gradient(135deg, rgb(4 79 84 / 0.035) 0 1px, transparent 1px 22px);
}

.ag-lockup {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 5.5rem;
  margin: 0;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgb(4 79 84 / 0.12);
  color: var(--ag-teal);
}

.ag-lockup img {
  width: 3.75rem;
  height: 3.75rem;
  padding: 0.42rem;
  border: 1px solid rgb(4 79 84 / 0.18);
  border-radius: 50%;
  background: var(--ag-paper);
  box-shadow: 0 0.5rem 1.2rem rgb(2 18 20 / 0.12);
  object-fit: contain;
}

.ag-lockup span {
  display: none;
}

.ag-main {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4.5rem) 1rem;
}

.ag-pass,
.ag-pass--wide {
  width: min(100%, 35rem);
  overflow: hidden;
  border: 1px solid rgb(4 79 84 / 0.14);
  border-radius: 1.4rem;
  background: var(--ag-paper);
  box-shadow: 0 1.8rem 4rem rgb(2 18 20 / 0.16);
}

.ag-pass--wide {
  width: min(100%, 54rem);
}

.ag-ribbon {
  min-height: 8.2rem;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem clamp(1.25rem, 4vw, 2.25rem);
  background: linear-gradient(120deg, var(--ag-teal) 0%, #0b7073 100%);
}

.ag-ribbon img {
  width: 4.25rem;
  height: 4.25rem;
  padding: 0.38rem;
  border: 0;
  border-radius: 50%;
  outline: 0.35rem solid rgb(255 255 255 / 0.12);
  background: var(--ag-paper);
  object-fit: contain;
}

.ag-ribbon strong {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.ag-ribbon span {
  margin-top: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  opacity: 0.75;
}

.ag-body-card {
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.ag-lead {
  max-width: 48rem;
  margin: 0 0 1.5rem;
  color: var(--ag-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.ag-grid {
  min-width: 0;
}

.ag-field {
  min-width: 0;
}

.ag-field label {
  margin-bottom: 0.45rem;
  color: var(--ag-teal);
}

.ag-field input,
.ag-field select {
  box-sizing: border-box;
  min-width: 0;
  min-height: 3.1rem;
  border: 1px solid var(--ag-line);
  border-left: 0.22rem solid var(--ag-teal);
  border-radius: 0.65rem;
  background: var(--ag-mist);
  color: var(--ag-ink);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.ag-field input:focus,
.ag-field select:focus {
  border-color: var(--ag-teal);
  background: var(--ag-paper);
  box-shadow: 0 0 0 0.2rem rgb(4 79 84 / 0.1);
}

.ag-phone {
  min-width: 0;
}

.ag-gender {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.ag-gender__option {
  display: flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0 0.75rem;
  border: 1px solid var(--ag-line, #d7e4e3);
  border-radius: 0.65rem;
  background: #ffffff;
  color: var(--ag-ink, #163033);
  font-weight: 700;
  cursor: pointer;
}

.ag-gender__option:has(input:checked) {
  border-color: var(--ag-teal, #044f54);
  background: rgb(4 79 84 / 0.08);
  color: var(--ag-teal, #044f54);
}

.ag-gender__option input {
  width: auto;
  margin: 0;
}

.ag-go {
  min-height: 3.25rem;
  margin-top: 1.5rem;
  border-radius: 0.65rem;
  background: var(--ag-teal);
  color: #eef6f6;
  box-shadow: 0 0.7rem 1.2rem rgb(4 79 84 / 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ag-go:hover {
  background: var(--ag-teal-deep);
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 0.9rem 1.4rem rgb(4 79 84 / 0.24);
}

.ag-switch {
  margin-top: 1.5rem;
  color: var(--ag-muted);
}

.ag-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem;
  color: var(--ag-muted);
  font-size: 0.76rem;
}

.ag-footer a {
  color: var(--ag-teal);
  font-weight: 700;
  text-decoration: none;
}

.ag-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .ag-lockup {
    min-height: 4.75rem;
    padding: 0.8rem 1rem;
  }

  .ag-lockup img {
    width: 3.25rem;
    height: 3.25rem;
  }

  .ag-main {
    align-items: flex-start;
    padding: 1.25rem 0.75rem 2rem;
  }

  .ag-pass,
  .ag-pass--wide {
    border-radius: 1rem;
  }

  .ag-ribbon {
    min-height: 7rem;
    padding: 1rem 1.1rem;
  }

  .ag-ribbon img {
    width: 3.45rem;
    height: 3.45rem;
  }

  .ag-body-card {
    padding: 1.25rem 1rem 1.4rem;
  }

  .ag-footer {
    padding-bottom: 1.25rem;
  }
}

/* Native selects keep their keyboard/accessibility behaviour, but use a
   custom shell and teal selected state instead of the browser-blue default. */
.ag-select-wrap {
  position: relative;
  min-width: 0;
}

.ag-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--ag-teal);
  border-bottom: 2px solid var(--ag-teal);
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
}

.ag-select-wrap:focus-within::after {
  border-color: var(--ag-teal-deep);
}

.ag-select-wrap .ag-select {
  appearance: none;
  width: 100%;
  cursor: pointer;
  padding-right: 2.8rem;
  color: var(--ag-ink);
  color-scheme: light;
}

.ag-select-wrap .ag-select option {
  background: var(--ag-paper);
  color: var(--ag-ink);
}

.ag-select-wrap .ag-select option:checked,
.ag-select-wrap .ag-select option:hover {
  background: var(--ag-teal);
  color: #eef6f6;
}
