/* ==========================================================================
   Auth — Login / Register (Tab Layout)
   ========================================================================== */
#main-container .site-main {
  flex-grow: 0 !important;
}
.woocommerce-account [data-vertical-spacing*="top"] {
  padding-top: 120px !important;
}
.edt-auth {
  max-width: 600px;
  margin: 0 auto;
}

/* Header */
.edt-auth__header {
  text-align: center;
  margin-bottom: 30px;
}

.edt-auth__title {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.edt-auth__subtitle {
  font-size: 0.9rem;
  color: var(--wp--preset--color--palette-color-3);
  line-height: 1.5;
}

/* Social Login */
.edt-auth__social {
  margin-bottom: 5px;
}

/* Divider */
.edt-auth__divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.edt-auth__divider::before,
.edt-auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--wp--preset--color--palette-color-3);
}

.edt-auth__divider span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--wp--preset--color--palette-color-3);
}

/* Tabs */
.edt-auth__tabs {
  display: flex;
  border-bottom: 1px solid var(--wp--preset--color--palette-color-7);
  margin-bottom: 25px;
}

.edt-auth__tab {
  flex: 1;
  padding: 14px 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--wp--preset--color--palette-color-3);
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.edt-auth__tab:hover {
  color: var(--wp--preset--color--palette-color-2);
}

.edt-auth__tab--active {
  color: var(--wp--preset--color--palette-color-3);
  border-bottom-color: var(--wp--preset--color--palette-color-2);
}

/* Panels */
.edt-auth__panel {
  display: none;
}

.edt-auth__panel--active {
  display: block;
}

/* Hide default WC two-column structure */
.edt-auth .u-columns,
.edt-auth .col2-set {
  display: block;
}

/* Forms — labels hidden, placeholder-driven */
.edt-auth .woocommerce-form-row label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--wp--preset--color--palette-color-3);
  margin-bottom: 5px;
}

.edt-auth label.woocommerce-form-login__rememberme {
  margin-bottom: 0;
  margin-right: 30px;
}
.edt-auth input[type="checkbox"] {
  border-color: #c4c4c4;
}
/* Error state for password mismatch */
.edt-auth__input--error {
  border-color: #dc3545 !important;
}

.edt-auth__pw-error {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #dc3545;
}

/* Name row — two columns */
.edt-auth__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.edt-auth__row .form-row {
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
}

/* Actions row — remember me + forgot password */
.edt-auth__actions {
  display: flex !important;
  width: 100%;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 10px;
}

.edt-auth__forgot {
  font-size: 0.825rem;
  color: var(--wp--preset--color--palette-color-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.edt-auth__forgot:hover {
  color: var(--wp--preset--color--palette-color-1);
}

/* Submit buttons — full width */
.edt-auth .woocommerce-form-login__submit,
.edt-auth .woocommerce-form-register__submit {
  width: 100%;
  min-height: 50px;
  margin-top: 5px;
  font-size: 0.725rem !important;
  font-weight: 500 !important;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Switch link (bottom) */
.edt-auth__switch {
  text-align: center;
  margin-top: 25px;
  font-size: 0.875rem;
  color: var(--wp--preset--color--palette-color-3);
}

.edt-auth__switch-link {
  color: var(--wp--preset--color--palette-color-1);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.edt-auth__switch-link:hover {
  opacity: 0.7;
}

/* Newsletter */
.edt-auth__newsletter {
  padding: 15px 0 0;
  border-top: 1px solid var(--wp--preset--color--palette-color-7, #e5e5e5);
  margin-top: 10px;
}

.edt-auth__newsletter label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.edt-auth__newsletter label span {
  font-size: 0.875rem;
  font-weight: 500;
}

/* WooCommerce notices inside auth */
.edt-auth .woocommerce-notices-wrapper:empty {
  display: none;
}

/* Required asterisk */
.edt-auth .required {
  color: var(--wp--preset--color--palette-color-3);
}

.edt-auth .woocommerce-privacy-policy-text {
  font-size: 0.8rem;
}

/* Mobile */
@media (max-width: 575.98px) {
  .edt-auth {
    padding: 50px 0 0 0;
  }

  .edt-auth__title {
    font-size: 1.5rem;
  }

  .edt-auth__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
