body.woocommerce-account:not(.logged-in) {
  min-height: 100vh;
  background: linear-gradient(140deg, #eaf2ff 0%, #f6f8ff 45%, #eef2ff 100%);
}

body.woocommerce-account:not(.logged-in) .woocommerce-error,
body.woocommerce-account:not(.logged-in) .woocommerce-message,
body.woocommerce-account:not(.logged-in) .woocommerce-info {
  position: fixed;
  left: 50%;
  top: 120px;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 32px));
  margin: 0;
  padding: 12px 14px;
  list-style: none;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  font-size: 13px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
  z-index: 999;
}

body.woocommerce-account:not(.logged-in) .woocommerce-error {
  background: rgba(239, 68, 68, 0.9);
}

body.woocommerce-account:not(.logged-in) .woocommerce-error li,
body.woocommerce-account:not(.logged-in) .woocommerce-message li,
body.woocommerce-account:not(.logged-in) .woocommerce-info li {
  margin: 0;
}

body.woocommerce-account:not(.logged-in) .woocommerce-error.is-hiding,
body.woocommerce-account:not(.logged-in) .woocommerce-message.is-hiding,
body.woocommerce-account:not(.logged-in) .woocommerce-info.is-hiding {
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.woocommerce-account:not(.logged-in) .site-content,
.woocommerce-account:not(.logged-in) .content-area,
.woocommerce-account:not(.logged-in) .site-main {
  background: transparent;
}

.gstore-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 160px);
  padding: 20px 16px 60px;
  position: relative;
}

.gstore-auth__card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #0f172a;
  min-height: 514px;
  position: relative;
}

.gstore-auth__notices {
  position: fixed;
  left: 50%;
  top: 150px;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  z-index: 6;
  max-width: 420px;
}

.gstore-auth__notices .woocommerce-error,
.gstore-auth__notices .woocommerce-message,
.gstore-auth__notices .woocommerce-info {
  margin: 0;
  padding: 12px 14px;
  list-style: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #0f172a;
  font-size: 13px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.gstore-auth__notices .woocommerce-error {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.35);
  color: #991b1b;
}

.gstore-auth__notices .woocommerce-error::after,
.gstore-auth__notices .woocommerce-message::after,
.gstore-auth__notices .woocommerce-info::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: rgba(37, 99, 235, 0.6);
  transform-origin: left;
  animation: gstore-auth-countdown 10s linear forwards;
}

.gstore-auth__notices .woocommerce-error::after {
  background: rgba(239, 68, 68, 0.6);
}

@keyframes gstore-auth-countdown {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.gstore-auth__notices .woocommerce-error li,
.gstore-auth__notices .woocommerce-message li,
.gstore-auth__notices .woocommerce-info li {
  margin: 0;
}

.gstore-auth__notices.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gstore-auth__tabs {
  position: relative;
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
  padding: 4px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 14px;
}

.gstore-auth__tabs--single {
  padding: 6px;
}

.gstore-auth__tab {
  flex: 1;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  color: #475569;
  font-weight: 600;
  transition: color 0.2s ease;
}

.gstore-auth__tab.is-active {
  color: #0f172a;
}

.gstore-auth__tab-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  transition: transform 0.25s ease;
  z-index: 0;
}

.gstore-auth__tabs--single .gstore-auth__tab-indicator {
  width: calc(100% - 8px);
}

.gstore-auth__note {
  margin: 0 0 18px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.gstore-auth__tab > span {
  position: relative;
  z-index: 1;
}

.gstore-auth__form {
  display: none;
  animation: gstore-auth-fade 0.4s ease;
}

.gstore-auth__form.is-active {
  display: block;
}

.gstore-auth__forms {
  min-height: 440px;
}

@keyframes gstore-auth-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gstore-auth__field {
  margin-bottom: 16px;
}

.gstore-auth__field input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.75);
  color: #0f172a;
  outline: none;
  font-family: 'TBC Contractica', system-ui, -apple-system, sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.gstore-auth__field input::placeholder {
  color: #94a3b8;
}

.gstore-auth__field input:focus {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.gstore-auth__primary {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 22px rgba(0, 102, 204, 0.3);
}

.gstore-auth__primary:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.gstore-auth__helper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin: 12px 0 18px;
  color: #64748b;
}

.gstore-auth__helper a {
  color: #2563eb;
  text-decoration: none;
}

.gstore-auth__divider {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  margin: 16px 0 12px;
}

.gstore-auth__socials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gstore-auth__social-btn {
  width: 100%;
  padding: 12px 10px;
  min-height: 48px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.gstore-auth__social-btn[disabled],
.gstore-auth__social-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.gstore-auth__social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.18);
}

.gstore-auth__social-btn svg {
  width: 18px;
  height: 18px;
}

.gstore-auth__social-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.gstore-auth__social-btn--apple img {
  filter: invert(1);
}

.gstore-auth__coming-soon {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #F59E0B;
  color: #ffffff;
  font-size: 9px;
  padding: 4px 6px;
  padding-top: 7px;
  border-radius: 4px;
  font-weight: 600;
  line-height: 1;
}

.gstore-auth__social-btn--google {
  background: #ffffff;
  color: #111827;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.gstore-auth__social-btn--apple {
  background: #111827;
  color: #ffffff;
}

.gstore-auth__social-btn--facebook {
  background: #1877f2;
  color: #ffffff;
}

/* Hide Site Kit native Google buttons; our Google button proxies their action */
.googlesitekit-sign-in-with-google,
.googlesitekit-siwg,
[class*="googlesitekit"][class*="sign-in"],
[class*="googlesitekit"][class*="siwg"] {
  display: none !important;
}

.gstore-auth__switch {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: #64748b;
}

.gstore-auth__switch a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 540px) {
  .gstore-auth__card {
    padding: 22px;
  }
}

@media (max-width: 767px), (max-width: 1024px) and (orientation: portrait) {
  .gstore-auth {
    min-height: auto;
    padding: 80px 12px 120px;
  }

  .gstore-auth__card {
    max-width: 100%;
    min-height: auto;
    border-radius: 18px;
    padding: 20px 16px;
  }

  .gstore-auth__tabs {
    gap: 6px;
    margin-bottom: 18px;
    padding: 4px;
  }

  .gstore-auth__tab {
    padding: 8px 10px;
    font-size: 13px;
  }

  .gstore-auth__note {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .gstore-auth__field input {
    padding: 10px 14px;
    font-size: 14px;
  }

  .gstore-auth__primary {
    padding: 12px 14px;
  }

  .gstore-auth__helper {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .gstore-auth__socials {
    grid-template-columns: repeat(2, 1fr);
  }

  .gstore-auth__switch {
    margin-top: 14px;
  }
}
