/* ==========================================================================
   EDEX Partners — Authentication Experience
   Shared stylesheet for login / register / password recovery screens.
   Built on top of Bootstrap 4.6.x (loaded before this file).
   ========================================================================== */

:root {
  /* Primary brand colour: forest green #228B22 = rgb(34, 139, 34) */
  --edex-green:        #228B22;
  --edex-green-rgb:    34, 139, 34;
  --edex-green-600:    #1d761d;
  --edex-green-700:    #186118;
  --edex-green-900:    #0c310c;
  --edex-leaf:         #4cb84c;   /* brighter accent (dots, required marks, glow) */
  --edex-leaf-200:     #bfe6b4;   /* light accent on the dark brand panel */
  --edex-leaf-soft:    #e9f3e9;   /* pale tint for chips and hovers */

  --edex-ink:          #142014;
  --edex-body:         #4b574b;
  --edex-muted:        #7a867a;
  --edex-line:         #e3e9e3;
  --edex-surface:      #ffffff;
  --edex-canvas:       #f4f7f4;

  --edex-danger:       #d64545;
  --edex-warning:      #b7791f;

  --edex-radius-lg:    22px;
  --edex-radius-md:    14px;
  --edex-radius-sm:    10px;

  --edex-shadow:       0 24px 60px -28px rgba(12, 49, 12, .35);
  --edex-shadow-sm:    0 2px 10px -4px rgba(12, 49, 12, .22);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html,
body.edex-auth-body {
  height: 100%;
}

body.edex-auth-body {
  margin: 0;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  background-color: var(--edex-canvas);
  color: var(--edex-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.edex-auth-body *,
.edex-auth-body *::before,
.edex-auth-body *::after {
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Shell — split screen
   -------------------------------------------------------------------------- */

.auth-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (min-width: 992px) {
  .auth-shell {
    flex-direction: row;
  }
  .auth-shell > .auth-brand {
    flex: 0 0 44%;
    max-width: 44%;
  }
  .auth-shell > .auth-main {
    flex: 1 1 56%;
    max-width: 56%;
  }
  .auth-shell--wide > .auth-brand {
    flex: 0 0 38%;
    max-width: 38%;
  }
  .auth-shell--wide > .auth-main {
    flex: 1 1 62%;
    max-width: 62%;
  }
}

/* --------------------------------------------------------------------------
   Brand panel (left)

   The <aside> stretches to the full height of the page. Its inner wrapper
   carries the artwork and copy: on desktop it is sticky and at least one
   viewport tall, so it stays in view beside long forms, but it is never given
   a fixed height — on short screens it grows instead of clipping its content.
   Sizes scale with viewport height (vh) so the panel fits common laptop
   screens without scrolling.
   -------------------------------------------------------------------------- */

.auth-brand {
  position: relative;
  color: #ffffff;
  background-color: var(--edex-green-900);
}

.auth-brand-inner {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 20px 24px;
  background:
    radial-gradient(120% 90% at 8% 4%, #2c9c2c 0%, rgba(44, 156, 44, 0) 58%),
    radial-gradient(90% 80% at 96% 96%, #1e741e 0%, rgba(30, 116, 30, 0) 62%),
    linear-gradient(158deg, var(--edex-green) 0%, var(--edex-green-700) 52%, var(--edex-green-900) 100%);
}

/* Subtle engraved grid + soft light bloom */
.auth-brand-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(85% 70% at 50% 35%, #000 0%, transparent 78%);
          mask-image: radial-gradient(85% 70% at 50% 35%, #000 0%, transparent 78%);
  pointer-events: none;
}

.auth-brand-inner::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -190px;
  bottom: -230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 184, 76, .32) 0%, rgba(76, 184, 76, 0) 68%);
  pointer-events: none;
}

.auth-brand-inner > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .auth-brand-inner {
    gap: 20px;
    padding: 24px 40px 30px;
  }
}

@media (min-width: 992px) {
  .auth-brand-inner {
    position: sticky;
    top: 0;
    min-height: 100vh;
    justify-content: space-between;
    gap: clamp(22px, 4.5vh, 48px);
    padding: clamp(26px, 5.5vh, 60px) clamp(36px, 4vw, 72px) clamp(22px, 4.2vh, 48px);
  }
}

/* Top row: logo + portal label */
.auth-brand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 6px;
  text-decoration: none;
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .55);
  transition: transform .16s ease, box-shadow .18s ease;
}

.auth-logo:hover,
.auth-logo:focus {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6);
}

.auth-logo img {
  display: block;
  width: 46px;
  height: auto;
}

@media (min-width: 576px) {
  .auth-logo img { width: 56px; }
}

@media (min-width: 992px) {
  .auth-logo {
    border-radius: 16px;
    padding: clamp(7px, 1.2vh, 11px);
  }
  .auth-logo img {
    width: clamp(60px, 11vh, 108px);
  }
}

.auth-logo-wordmark {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--edex-green);
  text-transform: uppercase;
  padding: 3px 10px;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--edex-leaf-200);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 9px 16px;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .auth-eyebrow { font-size: 14px; padding: 11px 20px; }
}

.auth-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--edex-leaf);
  box-shadow: 0 0 0 4px rgba(76, 184, 76, .24);
}

/* Copy block */
.auth-brand-body {
  max-width: 560px;
}

.auth-brand-title {
  font-size: clamp(26px, 7.2vw, 34px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0;
  color: #ffffff;
}

@media (min-width: 992px) {
  .auth-brand-title { font-size: clamp(32px, min(3.3vw, 6.6vh), 54px); }
}

.auth-brand-title em {
  font-style: normal;
  color: var(--edex-leaf-200);
}

/* Tagline: a different voice from the headline — serif italic, lighter, smaller */
.auth-brand-tagline {
  margin: 8px 0 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(19px, 5.2vw, 23px);
  line-height: 1.25;
  letter-spacing: .005em;
  color: var(--edex-leaf-200);
}

@media (min-width: 992px) {
  .auth-brand-tagline {
    margin-top: clamp(6px, 1.3vh, 14px);
    font-size: clamp(22px, min(2.15vw, 4.3vh), 34px);
  }
}

.auth-brand-lead {
  font-size: 14px;
  line-height: 1.62;
  color: rgba(255, 255, 255, .84);
  margin: 12px 0 0;
  max-width: 46ch;
}

@media (min-width: 992px) {
  .auth-brand-lead {
    font-size: clamp(14px, 2.2vh, 16px);
    margin-top: clamp(14px, 2.8vh, 26px);
  }
}

/* Feature list */
.auth-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.auth-brand .auth-points {
  margin-top: clamp(16px, 3.4vh, 30px);
  gap: clamp(9px, 1.7vh, 14px) 24px;
}

.auth-points li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(255, 255, 255, .92);
}

@media (min-width: 992px) {
  .auth-brand .auth-points li { font-size: clamp(13px, 2vh, 14.5px); }
}

.auth-points li .tick {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 0;
  border-radius: 50%;
  background: rgba(76, 184, 76, .2);
  border: 1px solid rgba(191, 230, 180, .45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-points li .tick svg {
  width: 11px;
  height: 11px;
  stroke: var(--edex-leaf-200);
  stroke-width: 2.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-points a {
  color: var(--edex-leaf-200);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(191, 230, 180, .45);
  padding-bottom: 1px;
  transition: color .16s ease, border-color .16s ease;
}

.auth-points a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
  text-decoration: none;
}

/* Two columns whenever there is room for them (5+ points) */
.auth-points--split {
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
}

/* Footnote */
.auth-brand-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding-top: clamp(14px, 2.6vh, 24px);
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .62);
}

.auth-brand-foot a {
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
  padding-bottom: 1px;
}

.auth-brand-foot a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Below 992px the panel is a compact band above the form: the points and the
   legal links are shown underneath the form instead (.auth-extra / .auth-legal). */
@media (max-width: 991.98px) {
  .auth-brand .auth-points,
  .auth-brand-foot {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Form panel (right)
   -------------------------------------------------------------------------- */

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 36px;
  background-color: var(--edex-canvas);
  background-image:
    radial-gradient(60% 50% at 100% 0%, rgba(34, 139, 34, .05) 0%, rgba(34, 139, 34, 0) 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(34, 139, 34, .045) 0%, rgba(34, 139, 34, 0) 70%);
}

@media (min-width: 576px) {
  .auth-main {
    padding: 36px 24px 48px;
  }
}

@media (min-width: 992px) {
  .auth-main {
    padding: 56px 44px;
  }
}

.auth-card {
  width: 100%;
  max-width: 452px;
  background: var(--edex-surface);
  border: 1px solid var(--edex-line);
  border-radius: var(--edex-radius-lg);
  box-shadow: var(--edex-shadow);
  padding: 28px 22px 28px;
}

@media (min-width: 576px) {
  .auth-card {
    padding: 42px 40px 38px;
  }
}

.auth-card--wide {
  max-width: 720px;
}

/* Card header */
.auth-card-head {
  margin-bottom: 26px;
}

.auth-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--edex-green);
  background: var(--edex-leaf-soft);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 14px;
}

.auth-title {
  font-size: 27px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--edex-ink);
  margin: 0 0 8px;
}

.auth-subtitle {
  font-size: 14.5px;
  line-height: 1.6;
  color: black;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Form controls
   -------------------------------------------------------------------------- */

.auth-card .form-group {
  margin-bottom: 18px;
}

.auth-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--edex-ink);
  margin: 0 0 7px;
}

.auth-label .req {
  color: var(--edex-leaf);
  margin-left: 2px;
}

.auth-label .opt {
  font-weight: 500;
  color: var(--edex-muted);
  letter-spacing: 0;
  margin-left: 4px;
}

.auth-card .form-control,
.auth-input {
  height: auto;
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--edex-ink);
  background-color: #fbfdfb;
  border: 1.5px solid var(--edex-line);
  border-radius: var(--edex-radius-md);
  padding: 13px 15px;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
  box-shadow: none;
}

.auth-card .form-control::placeholder,
.auth-input::placeholder {
  color: #a7b2a7;
  font-weight: 400;
}

.auth-card .form-control:focus,
.auth-input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--edex-green);
  box-shadow: 0 0 0 4px rgba(34, 139, 34, .12);
}

.auth-card .form-control:disabled,
.auth-card .form-control[readonly] {
  background-color: #f1f4f1;
}

/* Password field with reveal toggle */
.auth-field {
  position: relative;
}

.auth-field--password .form-control {
  padding-right: 48px;
}

.auth-reveal {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 9px;
  cursor: pointer;
  color: var(--edex-muted);
  transition: color .16s ease, background-color .16s ease;
}

.auth-reveal:hover,
.auth-reveal:focus {
  color: var(--edex-green);
  background-color: var(--edex-leaf-soft);
  outline: none;
}

.auth-reveal svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-reveal .icon-off { display: none; }
.auth-reveal.is-on .icon-on { display: none; }
.auth-reveal.is-on .icon-off { display: block; }

/* Row of two fields */
.auth-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 18px;
}

@media (min-width: 576px) {
  .auth-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Helper / error text */
.auth-help {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--edex-muted);
  margin-top: 6px;
}

.auth-error,
.auth-card .text-danger {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--edex-danger) !important;
  margin-top: 6px;
}

.auth-error:empty,
.auth-card .text-danger:empty {
  display: none;
  margin: 0;
}

/* Inline link row (forgot password) */
.auth-inline-link {
  display: block;
  text-align: right;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--edex-green);
  margin-top: 8px;
  text-decoration: none;
}

.auth-inline-link:hover {
  color: var(--edex-green-600);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
  padding: 15px 20px;
  border-radius: var(--edex-radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .14s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}

.auth-btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(34, 139, 34, .18);
}

.auth-btn-primary {
  color: #ffffff;
  background: var(--edex-green);
  box-shadow: 0 14px 26px -14px rgba(34, 139, 34, .75);
}

.auth-btn-primary:hover {
  color: #ffffff;
  background: var(--edex-green-600);
  transform: translateY(-1px);
  box-shadow: 0 18px 30px -14px rgba(34, 139, 34, .8);
}

.auth-btn-primary:active {
  transform: translateY(0);
}

.auth-btn-ghost {
  color: var(--edex-green);
  background: #ffffff;
  border-color: var(--edex-line);
}

.auth-btn-ghost:hover {
  color: var(--edex-green-600);
  border-color: var(--edex-green);
  background: var(--edex-leaf-soft);
  text-decoration: none;
}

.auth-btn .arrow {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.auth-btn:hover .arrow {
  transform: translateX(3px);
}

.auth-btn + .auth-btn {
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   Card footer / switchers
   -------------------------------------------------------------------------- */

.auth-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 13.5px;
  color: var(--edex-body);
}

.auth-foot a {
  font-weight: 700;
  color: var(--edex-green);
  text-decoration: none;
}

.auth-foot a:hover {
  text-decoration: underline;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 26px 0 18px;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--edex-line);
}

.auth-divider span {
  position: relative;
  display: inline-block;
  background: var(--edex-surface);
  padding: 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--edex-muted);
}

/* Role switch card */
.auth-switch {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1.5px solid var(--edex-line);
  border-radius: var(--edex-radius-md);
  background: #fbfdfb;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, transform .14s ease;
}

.auth-switch:hover {
  border-color: var(--edex-green);
  background: var(--edex-leaf-soft);
  text-decoration: none;
  transform: translateY(-1px);
}

.auth-switch .ico {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--edex-leaf-soft);
  color: var(--edex-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-switch .ico svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-switch .txt {
  flex: 1 1 auto;
  min-width: 0;
}

.auth-switch .txt strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--edex-ink);
  line-height: 1.3;
}

.auth-switch .txt span {
  display: block;
  font-size: 12px;
  color: var(--edex-muted);
  line-height: 1.45;
  margin-top: 1px;
}

.auth-switch .chev {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--edex-muted);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease, stroke .18s ease;
}

.auth-switch:hover .chev {
  stroke: var(--edex-green);
  transform: translateX(3px);
}

/* Back-to-site link under the card */
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--edex-muted);
  text-decoration: none;
}

.auth-back:hover {
  color: var(--edex-green);
  text-decoration: none;
}

.auth-back svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-main-inner {
  width: 100%;
  max-width: 452px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-main-inner--wide {
  max-width: 720px;
}

/* Mobile only: the brand panel's points and legal links, shown under the form */
.auth-extra,
.auth-legal {
  display: none;
}

@media (max-width: 991.98px) {
  .auth-extra {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 20px 22px;
    background: var(--edex-surface);
    border: 1px solid var(--edex-line);
    border-radius: var(--edex-radius-lg);
  }
  .auth-extra .auth-points li {
    font-size: 13.5px;
    color: var(--edex-body);
  }
  .auth-extra .auth-points li .tick {
    background: var(--edex-leaf-soft);
    border-color: rgba(34, 139, 34, .3);
  }
  .auth-extra .auth-points li .tick svg {
    stroke: var(--edex-green);
  }
  .auth-extra .auth-points a {
    color: var(--edex-green);
    border-bottom-color: rgba(34, 139, 34, .35);
  }
  .auth-extra .auth-points a:hover {
    color: var(--edex-green-600);
    border-bottom-color: var(--edex-green-600);
  }

  .auth-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    margin-top: 18px;
    font-size: 12px;
    color: var(--edex-muted);
  }
  .auth-legal a {
    color: var(--edex-body);
    text-decoration: none;
  }
  .auth-legal a:hover {
    color: var(--edex-green);
    text-decoration: underline;
  }
}

/* --------------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------------- */

.auth-card .alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13.5px;
  line-height: 1.55;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--edex-radius-md);
  padding: 13px 15px;
  margin-bottom: 20px;
}

.auth-card .alert .close {
  margin-left: auto;
  font-size: 20px;
  line-height: 1;
  opacity: .45;
  padding: 0 0 0 8px;
  text-shadow: none;
}

.auth-card .alert .close:hover {
  opacity: .8;
}

.auth-card .alert-success {
  color: #1a5c1a;
  background-color: #eaf5ea;
  border-color: #c4e3c4;
}

.auth-card .alert-danger {
  color: #8f2a2a;
  background-color: #fdeded;
  border-color: #f5c9c9;
}

.auth-card .alert-warning {
  color: #8a5a11;
  background-color: #fdf4e3;
  border-color: #f3ddb4;
}

.auth-card .alert-info {
  color: #12524a;
  background-color: #e9f4f3;
  border-color: #c6e2de;
}

.auth-alert-ico {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Subject-area tag selector (host school registration)
   -------------------------------------------------------------------------- */

.auth-tagbox {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border: 1.5px solid var(--edex-line);
  border-radius: var(--edex-radius-md);
  background: #fbfdfb;
  max-height: 208px;
  overflow-y: auto;
}

.auth-tagbox::-webkit-scrollbar {
  width: 7px;
}

.auth-tagbox::-webkit-scrollbar-thumb {
  background: #d3ded3;
  border-radius: 999px;
}

.auth-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--edex-body);
  background: #ffffff;
  border: 1.5px solid var(--edex-line);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: all .16s ease;
}

.auth-tag:hover {
  border-color: var(--edex-green);
  color: var(--edex-green);
  background: var(--edex-leaf-soft);
}

.auth-tag.selected {
  color: #ffffff;
  background: var(--edex-green);
  border-color: var(--edex-green);
  box-shadow: 0 6px 14px -8px rgba(34, 139, 34, .8);
}

.auth-tag.selected:hover {
  background: var(--edex-green-600);
  border-color: var(--edex-green-600);
  color: #ffffff;
}

.auth-tag .mark {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  margin-left: -18px;
  transition: opacity .16s ease, margin .16s ease;
}

.auth-tag.selected .mark {
  opacity: 1;
  margin-left: 0;
}

/* Section headings inside the wide registration card */
.auth-section {
  margin-bottom: 8px;
  padding-top: 6px;
}

.auth-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--edex-green);
  margin: 0 0 16px;
}

.auth-section-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--edex-line);
}

.auth-section + .auth-section {
  padding-top: 14px;
}

/* Password strength / match meter */
.auth-match {
  display: none;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 7px;
}

.auth-match.is-visible {
  display: flex;
}

.auth-match.is-ok    { color: var(--edex-green-600); }
.auth-match.is-bad   { color: var(--edex-danger); }

.auth-match svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */

.auth-mt-lg { margin-top: 26px; }
.auth-mb-0  { margin-bottom: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  .edex-auth-body *,
  .edex-auth-body *::before,
  .edex-auth-body *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
