/* TAGOOLI t231 — logged-out My Account login screen.
 * Scope: body.tg-auth-page / .tg-auth only (no effect on other account pages).
 */
body.tg-auth-page {
  --tga-navy: #14305a;
  --tga-blue: #1769D2;
  --tga-blue-2: #0f56b8;
  --tga-blue-soft: #e6f0fc;
  --tga-line: #d4e2f3;
  --tga-muted: #6f7f96;
  --tga-text: #18375F;
  overflow-x: hidden;
}
body.tg-auth-page .tg-main { padding: 0; }

.tg-auth {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 18% 20%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(900px 600px at 92% 0%, rgba(214, 231, 252, .9) 0%, rgba(214, 231, 252, 0) 65%),
    linear-gradient(180deg, #f4f8fe 0%, #eaf2fd 60%, #e2edfb 100%);
  padding: clamp(28px, 3.2vw, 44px) 0 clamp(36px, 4vw, 56px);
}
.tg-auth__decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.tg-auth__waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 72%;
  display: block;
}
.tg-auth__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* WooCommerce wrapper: neutralise the generic logged-out card from account.css */
body.tg-auth-page .tg-auth .woocommerce {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  max-width: none;
  margin: 0;
}

.tg-auth__grid {
  display: grid;
  grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

/* ---------- Brand panel ---------- */
.tg-auth__brand {
  justify-self: center;
  width: 100%;
  max-width: 460px;
  color: var(--tga-text);
}
.tg-auth__brand-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 2.7vw, 40px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--tga-navy);
  overflow-wrap: anywhere;
}
.tg-auth__brand-sub {
  margin: 0 0 28px;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.65;
  color: #2d4a70;
}
.tg-auth__brand-sub span { display: block; }
.tg-auth__perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 420px;
}
.tg-auth__perk {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 8px;
  text-align: center;
  position: relative;
  min-width: 0;
}
.tg-auth__perk + .tg-auth__perk::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  height: 44px;
  width: 1px;
  background: linear-gradient(180deg, rgba(120, 165, 225, 0), rgba(120, 165, 225, .55), rgba(120, 165, 225, 0));
}
.tg-auth__perk-ico {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tga-navy);
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #e3eefc 70%);
  box-shadow: 0 6px 16px rgba(23, 105, 210, .12), inset 0 0 0 1px rgba(255, 255, 255, .8);
}
.tg-auth__perk-txt {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--tga-navy);
  overflow-wrap: anywhere;
}
.tg-auth__heart {
  width: clamp(150px, 15vw, 210px);
  margin: 30px auto 0;
  max-width: 420px;
  transform: translateX(-10%);
  pointer-events: none;
  animation: tgAuthFloat 7s ease-in-out infinite;
}
.tg-auth__heart svg { display: block; width: 100%; height: auto; overflow: visible; }
@keyframes tgAuthFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .tg-auth__heart { animation: none; }
}

/* ---------- Card ---------- */
.tg-auth__card {
  justify-self: center;
  width: 100%;
  max-width: 525px;
  background: #fff;
  border-radius: 24px;
  padding: 34px 34px 28px;
  box-shadow: 0 18px 44px rgba(24, 55, 95, .10), 0 2px 6px rgba(24, 55, 95, .04);
  box-sizing: border-box;
  color: var(--tga-text);
}
.tg-auth__head { margin: 0 0 20px; }
.tg-auth__title {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--tga-navy);
}
.tg-auth__sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--tga-muted);
}
.tg-auth__form { margin: 0; padding: 0; border: 0; }
.tg-auth__field { margin: 0 0 16px; padding: 0; }
.tg-auth__label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tga-navy);
  line-height: 1.3;
}
.tg-auth__label .required { color: #e0353b; text-decoration: none; border: 0; }
.tg-auth__control {
  position: relative;
  display: block;
}
.tg-auth__lead {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  color: #3e5677;
  pointer-events: none;
}
body.tg-auth-page .tg-auth input.tg-auth__input {
  display: block;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 14px 0 46px;
  font-size: 15px;
  line-height: 46px;
  color: var(--tga-text);
  background: #fff;
  border: 1px solid var(--tga-line);
  border-radius: 12px;
  box-shadow: none;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}
body.tg-auth-page .tg-auth input.tg-auth__input--pw { padding-right: 48px; }
body.tg-auth-page .tg-auth input.tg-auth__input::placeholder { color: #98a6b8; opacity: 1; }
body.tg-auth-page .tg-auth input.tg-auth__input:hover { border-color: #b9cfea; }
body.tg-auth-page .tg-auth input.tg-auth__input:focus {
  outline: none;
  border-color: var(--tga-blue);
  box-shadow: 0 0 0 4px rgba(23, 105, 210, .14);
}
body.tg-auth-page .tg-auth input.tg-auth__input[aria-invalid="true"] {
  border-color: #e0353b;
  box-shadow: 0 0 0 3px rgba(224, 53, 59, .10);
}
.tg-auth__eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #233f63;
  cursor: pointer;
  min-height: 0;
  box-shadow: none;
}
.tg-auth__eye:hover { background: var(--tga-blue-soft); }
.tg-auth__eye:focus-visible { outline: 2px solid var(--tga-blue); outline-offset: 1px; }
.tg-auth__eye .tg-auth-ico--eye { display: none; }
.tg-auth__eye[aria-pressed="true"] .tg-auth-ico--eye { display: block; }
.tg-auth__eye[aria-pressed="true"] .tg-auth-ico--eye-off { display: none; }

.tg-auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 2px 0 20px;
}
body.tg-auth-page .tg-auth .tg-auth__remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--tga-navy);
  cursor: pointer;
}
.tg-auth__remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--tga-blue);
  cursor: pointer;
}
.tg-auth__forgot {
  font-size: 14px;
  font-weight: 700;
  color: var(--tga-blue);
  text-decoration: none;
}
.tg-auth__forgot:hover { text-decoration: underline; color: var(--tga-blue-2); }

.tg-auth__actions {
  display: grid;
  gap: 12px;
  margin: 0;
}
body.tg-auth-page .tg-auth .tg-auth__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  height: auto;
  margin: 0;
  padding: 10px 20px;
  box-sizing: border-box;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease, transform .08s ease, color .15s ease, border-color .15s ease;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.tg-auth-page .tg-auth .tg-auth__btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #1a6fd8 0%, #0e56b9 100%);
  border: 1px solid #0e56b9;
  box-shadow: 0 8px 18px rgba(15, 86, 185, .22);
}
body.tg-auth-page .tg-auth .tg-auth__btn--primary:hover { background: linear-gradient(180deg, #145fc0 0%, #0b4ba3 100%); color: #fff; }
body.tg-auth-page .tg-auth .tg-auth__btn--ghost {
  color: var(--tga-blue);
  background: #fff;
  border: 1.5px solid var(--tga-blue);
}
body.tg-auth-page .tg-auth .tg-auth__btn--ghost:hover { background: #f1f6fe; color: var(--tga-blue-2); border-color: var(--tga-blue-2); }
body.tg-auth-page .tg-auth .tg-auth__btn:active { transform: translateY(1px) scale(.995); }
body.tg-auth-page .tg-auth .tg-auth__btn:focus-visible { outline: 3px solid rgba(23, 105, 210, .35); outline-offset: 2px; }
.tg-auth__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  animation: tgAuthSpin .7s linear infinite;
}
.tg-auth__btn.is-loading { cursor: progress; opacity: .92; pointer-events: none; }
.tg-auth__btn.is-loading .tg-auth__spinner { display: inline-block; }
@keyframes tgAuthSpin { to { transform: rotate(360deg); } }

/* Alerts — WooCommerce notices + client validation share one style */
.tg-auth__alert,
body.tg-auth-page .tg-auth .woocommerce-error,
body.tg-auth-page .tg-auth .woocommerce-message,
body.tg-auth-page .tg-auth .woocommerce-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 16px;
  padding: 11px 14px;
  list-style: none;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 12px;
  border: 1px solid #f3c4c6;
  background: #fff5f5;
  color: #b4232a;
  box-shadow: none;
  width: auto;
}
.tg-auth__alert[hidden] { display: none; }
.tg-auth__alert .tg-auth-ico { flex: 0 0 auto; margin-top: 1px; }
body.tg-auth-page .tg-auth .woocommerce-error::before,
body.tg-auth-page .tg-auth .woocommerce-message::before,
body.tg-auth-page .tg-auth .woocommerce-info::before { display: none; content: none; }
body.tg-auth-page .tg-auth .woocommerce-error li { margin: 0; padding: 0; list-style: none; }
body.tg-auth-page .tg-auth .woocommerce-message,
body.tg-auth-page .tg-auth .woocommerce-info {
  border-color: #cfe0f6;
  background: #f2f7fe;
  color: var(--tga-navy);
}
body.tg-auth-page .tg-auth .woocommerce-notices-wrapper:empty { display: none; }

/* Trust strip */
.tg-auth__trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f1f6fe 0%, #eaf2fd 100%);
  border: 1px solid #dce8f8;
}
.tg-auth__trust-ico {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tga-navy);
  background: #fff;
  box-shadow: 0 4px 10px rgba(23, 105, 210, .10);
}
.tg-auth__trust-body { min-width: 0; }
.tg-auth__trust-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--tga-navy);
}
.tg-auth__trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
}
.tg-auth__trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #4b6283;
}
.tg-auth__trust-list .tg-auth-ico { color: #2b5ea8; flex: 0 0 auto; }

/* Register view */
.tg-auth__switch {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--tga-muted);
}
.tg-auth__switch a { color: var(--tga-blue); font-weight: 700; text-decoration: none; }
.tg-auth__hint { margin: 0 0 16px; font-size: 13px; color: var(--tga-muted); }
.tg-auth__closed {
  margin: 0 0 20px;
  padding: 16px;
  border-radius: 14px;
  background: #f5f8fd;
  border: 1px dashed #c9d9ef;
}
.tg-auth__closed-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--tga-navy); }
.tg-auth__closed-text { margin: 0; font-size: 14px; line-height: 1.6; color: #4b6283; }
body.tg-auth-page .tg-auth .woocommerce-privacy-policy-text { font-size: 12px; color: var(--tga-muted); margin: 0 0 14px; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .tg-auth__card { padding: 30px 26px 24px; }
  .tg-auth__perk-ico { width: 52px; height: 52px; }
}
@media (max-width: 900px) {
  .tg-auth { padding: 24px 0 36px; }
  .tg-auth__inner { padding: 0 16px; }
  .tg-auth__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .tg-auth__brand { max-width: 560px; text-align: center; }
  .tg-auth__brand-title { font-size: clamp(24px, 5.6vw, 32px); margin-bottom: 8px; }
  .tg-auth__brand-sub { font-size: 15px; margin-bottom: 18px; }
  .tg-auth__perks { margin: 0 auto; max-width: 440px; }
  .tg-auth__heart { display: none; }
  .tg-auth__card { max-width: 560px; }
  .tg-auth__waves { height: 45%; }
}
/* ---------- Mobile ---------- */
@media (max-width: 480px) {
  .tg-auth { padding: 18px 0 28px; }
  .tg-auth__inner { padding: 0 12px; }
  .tg-auth__perk-ico { width: 46px; height: 46px; }
  .tg-auth__perk-ico .tg-auth-ico { width: 22px; height: 22px; }
  .tg-auth__perk-txt { font-size: 13px; }
  .tg-auth__card { padding: 24px 18px 20px; border-radius: 22px; }
  .tg-auth__title { font-size: 24px; }
  .tg-auth__trust { align-items: flex-start; padding: 12px; gap: 10px; }
  .tg-auth__trust-ico { width: 38px; height: 38px; }
}

/* Neutralise account.css generic login/register card on the form itself */
body.tg-auth-page .tg-auth form.woocommerce-form-login,
body.tg-auth-page .tg-auth form.woocommerce-form-register {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  max-width: none;
}
body.tg-auth-page .tg-auth .woocommerce-error:focus,
body.tg-auth-page .tg-auth .woocommerce-NoticeGroup:focus,
body.tg-auth-page .tg-auth .woocommerce-notices-wrapper:focus { outline: none; }

/* t232: password strength + confirmation (register view) */
.tg-auth__strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--tga-muted);
}
.tg-auth__strength-bar {
  flex: 0 0 132px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.tg-auth__strength-bar i {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #e3eaf3;
  transition: background-color .2s ease;
}
.tg-auth__strength[data-level="1"] .tg-auth__strength-bar i:nth-child(1) { background: #e0353b; }
.tg-auth__strength[data-level="2"] .tg-auth__strength-bar i:nth-child(-n+2) { background: #e9a323; }
.tg-auth__strength[data-level="3"] .tg-auth__strength-bar i { background: #1f8a4c; }
.tg-auth__strength strong { font-weight: 700; color: var(--tga-navy); }
.tg-auth__strength[data-level="1"] strong { color: #c42a30; }
.tg-auth__strength[data-level="2"] strong { color: #b7791f; }
.tg-auth__strength[data-level="3"] strong { color: #1f8a4c; }
.tg-auth__hint--pw { margin: 6px 0 0; font-size: 12px; line-height: 1.5; }
.tg-auth__match { margin: 6px 0 0; font-size: 12.5px; font-weight: 600; }
.tg-auth__match[data-ok="1"] { color: #1f8a4c; }
.tg-auth__match[data-ok="0"] { color: #c42a30; }
.tg-auth__match[hidden] { display: none; }
@media (max-width: 480px) {
  .tg-auth__strength { flex-wrap: wrap; gap: 6px 10px; }
  .tg-auth__strength-bar { flex-basis: 100%; }
}

/* t237: lost password + confirmation */
.tg-auth__sub--lost { color: #4b6283; font-size: 14.5px; line-height: 1.6; }
body.tg-auth-page--lost .tg-auth__switch { margin: 18px 0 0; }
.tg-auth__alert--server { display: flex; }
body.tg-auth-page .tg-auth form.lost_reset_password {
  background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; margin: 0; max-width: none;
}
.tg-auth__sent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 20px;
  padding: 16px;
  border-radius: 14px;
  background: #f2f7fe;
  border: 1px solid #d6e4f7;
}
.tg-auth__sent-ico {
  flex: 0 0 auto;
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--tga-blue);
  box-shadow: 0 4px 10px rgba(23, 105, 210, .12);
}
.tg-auth__sent-title { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--tga-navy); }
.tg-auth__sent-text { margin: 0 0 6px; font-size: 13.5px; line-height: 1.6; color: #4b6283; }
.tg-auth__sent-text:last-child { margin-bottom: 0; }
