/* Register / auth – seamless background, no hairlines under header */

body.frontend.auth-page-register,
body.frontend.auth-page-register .site-main,
body.frontend.auth-page-login,
body.frontend.auth-page-login .site-main {
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(0, 180, 166, .14), transparent 58%),
    radial-gradient(720px 360px at 92% 8%, rgba(26, 107, 181, .10), transparent 52%),
    #eef2f7;
}

/* Kill header bottom seam on auth pages */
body.frontend.auth-page-register .site-header,
body.frontend.auth-page-register .site-header--dark,
body.frontend.auth-page-login .site-header,
body.frontend.auth-page-login .site-header--dark {
  border-bottom: 0 !important;
  box-shadow: none !important;
}

body.frontend.auth-page-register .topbar,
body.frontend.auth-page-login .topbar {
  border-bottom: 0 !important;
}

.auth-premium {
  position: relative;
  padding: 2.75rem 0 3.75rem;
  margin: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

/* No separate bg layer (was causing gradient seams) */
.auth-premium-bg { display: none !important; }

.auth-premium-wrap {
  position: relative;
  z-index: 1;
}

.auth-premium-card {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 0;
  background: #fff;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 36, 61, .04),
    0 22px 50px rgba(15, 36, 61, .12);
  max-width: 980px;
  margin: 0 auto;
  isolation: isolate;
}

.auth-premium-copy {
  padding: 2.2rem 2rem;
  color: #fff;
  background: linear-gradient(145deg, #08101c 0%, #0d2234 55%, #0a6b63 100%);
  border: 0;
  box-shadow: none;
}

.auth-eyebrow {
  margin: 0 0 .5rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  font-weight: 800;
  opacity: .65;
}

.auth-premium-copy h1 {
  margin: 0 0 .7rem;
  font-family: var(--display, "Sora", sans-serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: #fff;
}

.auth-premium-copy > p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, .78);
  line-height: 1.55;
}

.auth-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}

.auth-benefits li {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  color: rgba(255, 255, 255, .9);
  font-weight: 600;
}

.auth-benefits i {
  color: var(--teal, #00b4a6);
  margin-top: .2rem;
}

.auth-premium-form {
  padding: 2rem 1.8rem 1.6rem;
  background: #fff;
  border: 0;
}

.auth-premium-form h2 {
  margin: 0 0 1rem;
  font-family: var(--display, "Sora", sans-serif);
  font-size: 1.35rem;
}

.auth-premium-form label {
  display: block;
  margin: .7rem 0 .3rem;
  font-weight: 700;
  color: #475569;
  font-size: .86rem;
}

.auth-premium-form input[type="text"],
.auth-premium-form input[type="email"],
.auth-premium-form input[type="password"],
.auth-premium-form input[type="tel"],
.auth-premium-form select {
  width: 100%;
  border: 1px solid #d7dee8;
  border-radius: 12px;
  padding: .7rem .85rem;
  font: inherit;
  background: #fbfcfe;
}

.auth-premium-form input:focus,
.auth-premium-form select:focus {
  outline: 2px solid rgba(0, 180, 166, .35);
  border-color: var(--teal, #00b4a6);
}

.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.auth-check {
  display: flex !important;
  gap: .65rem;
  align-items: flex-start;
  margin: 1rem 0 !important;
  font-weight: 600 !important;
  color: #334155 !important;
}

.auth-check input {
  margin-top: .25rem;
  width: auto !important;
}

.auth-submit {
  width: 100%;
  margin-top: .4rem;
  justify-content: center;
}

.auth-foot {
  margin: 1rem 0 0;
  text-align: center;
}

.auth-foot-sm {
  margin-top: .35rem;
  font-size: .85rem;
}

.auth-row {
  display: flex;
  justify-content: flex-end;
  margin: .35rem 0 .85rem;
}

.auth-link {
  font-size: .88rem;
  font-weight: 700;
  color: var(--teal, #00b4a6);
}

.auth-field {
  position: relative;
}

.auth-field > i {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.auth-field input {
  padding-left: 2.4rem !important;
}

.auth-premium-form .auth-field input[type="text"],
.auth-premium-form .auth-field input[type="email"],
.auth-premium-form .auth-field input[type="password"],
.auth-admin-card .auth-field input[type="email"],
.auth-admin-card .auth-field input[type="password"] {
  width: 100%;
  border: 1px solid #d7dee8;
  border-radius: 12px;
  padding: .7rem .85rem .7rem 2.4rem;
  font: inherit;
  background: #fbfcfe;
}

.auth-premium-form .auth-field input:focus,
.auth-admin-card .auth-field input:focus {
  outline: 2px solid rgba(0, 180, 166, .35);
  border-color: var(--teal, #00b4a6);
}

.auth-premium-card-login {
  max-width: 860px;
}

.auth-alert {
  border-radius: 12px;
  padding: .75rem .9rem;
  margin-bottom: .9rem;
  font-weight: 700;
  font-size: .92rem;
}

.auth-alert.err {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.auth-alert.ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.auth-alert.info {
  display: flex;
  align-items: center;
  gap: .55rem;
  background: linear-gradient(135deg, rgba(0, 180, 166, .1), rgba(14, 154, 130, .06));
  color: #0b6e62;
  border: 1px solid rgba(0, 180, 166, .28);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.auth-alert.info i {
  flex-shrink: 0;
  opacity: .9;
}
@media (max-width: 520px) {
  .auth-alert.info {
    white-space: normal;
    font-size: .84rem;
  }
}

/* ===== Register only: slightly denser so form + footer fit better ===== */
body.frontend.auth-page-register .auth-premium {
  padding: 1.25rem 0 1.5rem;
}
body.frontend.auth-page-register .auth-premium-card {
  max-width: 940px;
  border-radius: 18px;
  grid-template-columns: .95fr 1.2fr;
}
body.frontend.auth-page-register .auth-premium-copy {
  padding: 1.4rem 1.35rem;
}
body.frontend.auth-page-register .auth-premium-copy h1 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  margin-bottom: .5rem;
}
body.frontend.auth-page-register .auth-premium-copy > p {
  margin-bottom: .85rem;
  font-size: .9rem;
  line-height: 1.45;
}
body.frontend.auth-page-register .auth-benefits {
  gap: .4rem;
}
body.frontend.auth-page-register .auth-benefits li {
  font-size: .88rem;
}
body.frontend.auth-page-register .auth-premium-form {
  padding: 1.25rem 1.35rem 1.1rem;
}
body.frontend.auth-page-register .auth-premium-form h2 {
  margin-bottom: .55rem;
  font-size: 1.2rem;
}
body.frontend.auth-page-register .auth-premium-form label {
  margin: .45rem 0 .2rem;
  font-size: .8rem;
}
body.frontend.auth-page-register .auth-premium-form form > label:first-of-type {
  margin-top: 0;
}
body.frontend.auth-page-register .auth-premium-form input[type="text"],
body.frontend.auth-page-register .auth-premium-form input[type="email"],
body.frontend.auth-page-register .auth-premium-form input[type="password"],
body.frontend.auth-page-register .auth-premium-form input[type="tel"],
body.frontend.auth-page-register .auth-premium-form select {
  padding: .5rem .75rem;
  border-radius: 10px;
  font-size: .9rem;
}
body.frontend.auth-page-register .auth-premium-form .eg-phone-dial,
body.frontend.auth-page-register .auth-premium-form .eg-phone-national {
  padding: .5rem .7rem !important;
  border-radius: 10px !important;
  font-size: .9rem !important;
}
body.frontend.auth-page-register .auth-grid-2 {
  gap: .55rem .7rem;
}
body.frontend.auth-page-register .auth-check {
  margin: .7rem 0 .45rem !important;
  font-size: .82rem !important;
}
body.frontend.auth-page-register .auth-submit {
  padding: .65rem 1rem !important;
}
body.frontend.auth-page-register .auth-foot {
  margin-top: .65rem;
  font-size: .85rem;
}

@media (max-height: 860px) {
  body.frontend.auth-page-register .auth-premium {
    padding: .85rem 0 1rem;
  }
  body.frontend.auth-page-register .auth-premium-copy > p {
    display: none;
  }
  body.frontend.auth-page-register .auth-premium-form {
    padding: 1rem 1.2rem .9rem;
  }
}

/* ===== Mobile: stack columns (must match register specificity) ===== */
@media (max-width: 900px) {
  .auth-premium {
    padding: 1.25rem 0 5.5rem; /* room for chat FAB */
  }
  .auth-premium-wrap.container {
    padding-left: .85rem;
    padding-right: .85rem;
    max-width: 100%;
  }
  .auth-premium-card,
  body.frontend.auth-page-register .auth-premium-card,
  body.frontend.auth-page-login .auth-premium-card {
    grid-template-columns: 1fr !important;
    max-width: 520px;
    border-radius: 16px;
  }
  .auth-premium-copy,
  body.frontend.auth-page-register .auth-premium-copy {
    padding: 1.15rem 1.15rem 1rem;
  }
  .auth-premium-copy h1,
  body.frontend.auth-page-register .auth-premium-copy h1 {
    font-size: 1.35rem;
  }
  .auth-premium-copy > p,
  body.frontend.auth-page-register .auth-premium-copy > p {
    display: block;
    margin-bottom: .75rem;
    font-size: .88rem;
  }
  .auth-benefits {
    gap: .35rem;
  }
  .auth-benefits li {
    font-size: .84rem;
  }
  .auth-premium-form,
  body.frontend.auth-page-register .auth-premium-form {
    padding: 1.15rem 1.15rem 1.25rem;
  }
  .auth-grid-2,
  body.frontend.auth-page-register .auth-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 0;
  }
  /* Keep first/last name side-by-side when space allows */
  .auth-premium-form .eg-phone-row {
    grid-template-columns: minmax(5.5rem, 7.5rem) 1fr !important;
    gap: .5rem;
    width: 100%;
  }
  .auth-premium-form .eg-phone-dial,
  .auth-premium-form .eg-phone-national {
    width: 100%;
    min-width: 0;
  }
  .auth-premium-form input,
  .auth-premium-form select,
  body.frontend.auth-page-register .auth-premium-form input[type="text"],
  body.frontend.auth-page-register .auth-premium-form input[type="email"],
  body.frontend.auth-page-register .auth-premium-form input[type="password"],
  body.frontend.auth-page-register .auth-premium-form input[type="tel"],
  body.frontend.auth-page-register .auth-premium-form select {
    font-size: 16px !important; /* prevent iOS zoom */
    min-height: 2.75rem;
    box-sizing: border-box;
  }
  .auth-check {
    font-size: .86rem !important;
  }
  .auth-submit {
    min-height: 2.85rem;
    font-size: 1rem;
  }
}

@media (max-width: 520px) {
  .auth-premium {
    padding: .85rem 0 5.75rem;
  }
  .auth-premium-wrap.container {
    padding-left: .65rem;
    padding-right: .65rem;
  }
  .auth-premium-card,
  body.frontend.auth-page-register .auth-premium-card {
    border-radius: 14px;
  }
  /* Compact welcome strip on narrow phones */
  body.frontend.auth-page-register .auth-premium-copy > p {
    display: none;
  }
  body.frontend.auth-page-register .auth-eyebrow {
    margin-bottom: .35rem;
  }
  body.frontend.auth-page-register .auth-premium-copy h1 {
    font-size: 1.2rem;
    margin-bottom: .45rem;
  }
  body.frontend.auth-page-register .auth-benefits li {
    font-size: .8rem;
  }
  body.frontend.auth-page-register .auth-premium-form {
    padding: 1rem .95rem 1.15rem;
  }
  body.frontend.auth-page-register .auth-premium-form h2 {
    font-size: 1.15rem;
  }
}

@media (max-width: 380px) {
  .auth-benefits {
    display: none;
  }
}
.auth-admin-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font, "Manrope", system-ui, sans-serif);
  color: #e8eef6;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(0, 180, 166, .22), transparent 55%),
    radial-gradient(700px 420px at 90% 110%, rgba(26, 107, 181, .18), transparent 50%),
    linear-gradient(160deg, #07111d 0%, #0d1f33 48%, #0a2a32 100%);
}

.auth-admin {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  overflow: hidden;
}

.auth-admin-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .45;
  pointer-events: none;
}

.auth-admin-orb-a {
  width: 280px;
  height: 280px;
  background: #14b8a6;
  top: 8%;
  left: 12%;
}

.auth-admin-orb-b {
  width: 340px;
  height: 340px;
  background: #1a6bb5;
  bottom: 6%;
  right: 8%;
}

.auth-admin-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: linear-gradient(160deg, rgba(15, 28, 46, .92), rgba(10, 22, 36, .96));
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  padding: 1.7rem 1.55rem 1.35rem;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, .2),
    0 28px 60px rgba(0, 0, 0, .4);
  backdrop-filter: blur(14px);
  color: #e8eef6;
}

.auth-admin-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.1rem;
}

.auth-admin-brand img {
  max-height: 36px;
  width: auto;
  filter: none;
}

.auth-admin-brand strong {
  font-family: var(--display, "Sora", sans-serif);
  font-size: 1.15rem;
  color: #fff;
}

.auth-admin-badge {
  display: inline-flex;
  align-items: center;
  padding: .28rem .65rem;
  border-radius: 999px;
  background: rgba(0, 180, 166, .16);
  color: #5eead4;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.auth-admin-card h1 {
  margin: 0 0 .35rem;
  font-family: var(--display, "Sora", sans-serif);
  font-size: 1.55rem;
  color: #fff;
}

.auth-admin-lead {
  margin: 0 0 1.1rem;
  color: rgba(232, 238, 246, .65);
  font-size: .92rem;
}

.auth-admin-card label {
  display: block;
  margin: .7rem 0 .3rem;
  font-weight: 700;
  color: rgba(232, 238, 246, .72);
  font-size: .86rem;
}

.auth-admin-card .auth-field > i {
  color: rgba(148, 163, 184, .9);
}

.auth-admin-card .auth-field input[type="email"],
.auth-admin-card .auth-field input[type="password"] {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: .7rem .85rem .7rem 2.4rem;
  font: inherit;
  background: rgba(7, 17, 29, .55);
  color: #fff;
}

.auth-admin-card .auth-field input::placeholder {
  color: rgba(148, 163, 184, .7);
}

.auth-admin-card .auth-field input:focus {
  outline: 2px solid rgba(0, 180, 166, .4);
  border-color: rgba(0, 180, 166, .55);
}

.auth-admin-card .auth-submit {
  width: 100%;
  margin-top: .85rem;
  justify-content: center;
}

.auth-admin-card .auth-foot {
  margin-top: 1.1rem;
  color: rgba(232, 238, 246, .55);
}

.auth-admin-card .auth-foot a {
  color: #5eead4;
}

.auth-admin-card .auth-alert.err {
  background: rgba(185, 28, 28, .18);
  color: #fecaca;
  border-color: rgba(248, 113, 113, .35);
}

.auth-admin-card .auth-alert.ok {
  background: rgba(4, 120, 87, .2);
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, .35);
}

@media (max-width: 820px) {
  /* legacy fallback – superseded by 900px block with register specificity */
  .auth-premium-card { grid-template-columns: 1fr; }
  .auth-grid-2 { grid-template-columns: 1fr; }
}
