/* auth.css — Tripzao Auth Page (Login & Register) v1.3.6 */

/* ── Wrapper ──────────────────────────────────────────────── */
.tzr-tpl-page-auth {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
}

.auth-bg {
  flex: 1;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px 72px;
}

.auth-wrap {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ── Brand ───────────────────────────────────────────────── */
.auth-brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.auth-brand .tzr-logo {
  font-size: 26px;
  display: inline-flex;
}

.auth-tagline {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-400);
  margin: 0;
  letter-spacing: .01em;
}

/* ── Notices (WooCommerce errors redirected back here) ───── */
.auth-notices {
  width: 100%;
}

.auth-notices .woocommerce-error,
.auth-notices .woocommerce-message,
.auth-notices .woocommerce-info {
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-bn);
  font-size: 14px;
  list-style: none;
  margin: 0;
}

/* ── Card ────────────────────────────────────────────────── */
.auth-card {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ── Tabs ────────────────────────────────────────────────── */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1.5px solid var(--ink-100);
}

.auth-tab {
  padding: 15px 20px;
  font-family: var(--font-bn);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-400);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color .18s var(--ease);
}

.auth-tab::after {
  content: '';
  position: absolute;
  bottom: -1.5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue-700);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s var(--ease-expo);
}

.auth-tab.active {
  color: var(--blue-700);
}

.auth-tab.active::after {
  transform: scaleX(1);
}

.auth-tab:not(.active):hover {
  color: var(--ink-700);
}

/* ── Panels ──────────────────────────────────────────────── */
.auth-panel {
  display: none;
  padding: 28px 32px 20px;
}

.auth-panel.active {
  display: block;
}

/* ── Form ────────────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label,
.auth-label-row {
  font-family: var(--font-bn);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink-900);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  -webkit-appearance: none;
}

.auth-input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(58, 116, 224, .12);
}

.auth-input::placeholder {
  color: var(--ink-300);
  font-size: 14px;
}

/* Password field with eye button */
.auth-pwd-wrap {
  position: relative;
}

.auth-pwd-wrap .auth-input {
  padding-right: 44px;
}

.auth-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-300);
  padding: 4px;
  line-height: 0;
  transition: color .15s;
}

.auth-eye:hover,
.auth-eye.active {
  color: var(--blue-600);
}

.auth-forgot {
  font-family: var(--font-bn);
  font-size: 12px;
  font-weight: 500;
  color: var(--blue-600);
  transition: color .15s;
}

.auth-forgot:hover {
  color: var(--blue-800);
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-bn);
  font-size: 13px;
  color: var(--ink-700);
  user-select: none;
  margin-top: -2px;
}

.auth-remember input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: var(--blue-700);
  flex-shrink: 0;
}

/* ── Submit button ───────────────────────────────────────── */
.auth-submit {
  width: 100%;
  padding: 13px 20px;
  background: var(--blue-700);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-bn);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s var(--ease), transform .1s;
  margin-top: 2px;
}

.auth-submit:hover {
  background: var(--blue-800);
}

.auth-submit:active {
  transform: scale(.98);
}

.auth-submit.register {
  background: var(--mint-500);
}

.auth-submit.register:hover {
  background: #27aa7e;
}

/* ── Terms text (register) ───────────────────────────────── */
.auth-terms {
  font-family: var(--font-bn);
  font-size: 12px;
  color: var(--ink-400);
  text-align: center;
  margin: -4px 0 0;
  line-height: 1.65;
}

.auth-terms a {
  color: var(--blue-600);
}

.auth-terms a:hover {
  text-decoration: underline;
}

.req {
  color: var(--coral-500);
  font-size: 12px;
}

/* ── Switch row ──────────────────────────────────────────── */
.auth-switch {
  padding: 14px 32px 16px;
  border-top: 1.5px solid var(--ink-100);
  text-align: center;
  font-family: var(--font-bn);
  font-size: 14px;
  color: var(--ink-500);
}

.auth-switch-btn {
  background: none;
  border: none;
  color: var(--blue-600);
  font-family: var(--font-bn);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.auth-switch-btn:hover {
  color: var(--blue-800);
  text-decoration: underline;
}

/* ── No WC fallback ──────────────────────────────────────── */
.auth-no-wc {
  font-family: var(--font-bn);
  color: var(--ink-500);
  font-size: 14px;
  text-align: center;
  padding: 20px 0 4px;
}

/* ── Trust bar ───────────────────────────────────────────── */
.auth-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-bn);
  font-size: 12px;
  color: var(--ink-400);
}

.auth-trust .dot {
  color: var(--ink-300);
}

/* ── WP native login_form fallback styles ────────────────── */
.auth-panel .login {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-panel .login p { margin: 0; }

.auth-panel .login label {
  font-family: var(--font-bn);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  display: block;
  margin-bottom: 5px;
}

.auth-panel .login input[type="text"],
.auth-panel .login input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--ink-900);
  background: var(--white);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.auth-panel .login input[type="text"]:focus,
.auth-panel .login input[type="password"]:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(58,116,224,.12);
}

.auth-panel .login .login-submit input[type="submit"] {
  width: 100%;
  padding: 13px 20px;
  background: var(--blue-700);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-bn);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.auth-panel .login .login-submit input[type="submit"]:hover {
  background: var(--blue-800);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 520px) {
  .auth-bg {
    padding: 40px 16px 60px;
    align-items: flex-start;
  }

  .auth-panel {
    padding: 22px 20px 18px;
  }

  .auth-switch {
    padding: 12px 20px 14px;
  }
}
