/**
 * T-Shirt Planet — V28 Login / Register
 * File: v28-auth.css  (child theme root)
 * Single card layout — form only
 */

/* ═══════════════════════════════════════════
   TOKENS
   ═══════════════════════════════════════════ */
.v28-auth-page {
  --primary: #363030;
  --dark: #1a1716;
  --coral: #E63946;
  --coral-hover: #d32f3c;
  --blue: #2D7FF9;
  --white: #ffffff;
  --gray-100: #f3f2f0;
  --gray-200: #e8e6e3;
  --gray-300: #d4d1cc;
  --gray-400: #a8a4a0;
  --gray-500: #7a7572;
  --gray-600: #5c5856;
  --text: #1a1716;
  --text-light: #5c5856;
  --text-muted: #8a8582;
  --pill: 100px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow: 0 4px 32px rgba(0,0,0,.08);
  --tr: .25s cubic-bezier(.4,0,.2,1);
  --gap-xs: clamp(6px, 0.8vh, 10px);
  --gap-sm: clamp(10px, 1.5vh, 16px);
  --gap-md: clamp(16px, 2.2vh, 24px);
  --gap-lg: clamp(20px, 3vh, 32px);
}

.v28-auth-page *,
.v28-auth-page *::before,
.v28-auth-page *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.v28-auth-page a {
  color: inherit;
  text-decoration: none;
}

/* ═══════════════════════════════════════════
   PAGE WRAPPER — Centered
   ═══════════════════════════════════════════ */
.v28-auth-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding: clamp(16px, 3vh, 40px) 20px;
color: var(--text);
}

/* ═══════════════════════════════════════════
   CARD
   ═══════════════════════════════════════════ */
.v28-auth-card {
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: clamp(32px, 5vh, 56px) clamp(28px, 4.5vw, 52px);
}

/* ═══════════════════════════════════════════
   LOGO
   ═══════════════════════════════════════════ */
.v28-auth-logo {
  display: none;
}

.v28-auth-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.v28-auth-logo-text {
font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}

.v28-auth-logo-text .dot {
  color: var(--coral);
}

/* ═══════════════════════════════════════════
   PILL TABS
   ═══════════════════════════════════════════ */
.v28-auth-tabs {
  display: flex;
  margin-bottom: var(--gap-lg);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--pill);
  padding: 4px;
}

.v28-auth-tab {
  flex: 1;
  height: clamp(50px, 7.5vh, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
font-size: clamp(.9rem, 1vw, 1.05rem);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--pill);
  transition: var(--tr);
  border: none;
  background: transparent;
  white-space: nowrap;
}

.v28-auth-tab:hover {
  color: var(--text);
}

.v28-auth-tab.active {
  background: var(--dark);
  color: var(--white);
}

/* ═══════════════════════════════════════════
   PANELS
   ═══════════════════════════════════════════ */
.v28-auth-panel {
  display: none;
}

.v28-auth-panel.active {
  display: block;
  animation: v28fadeUp .3s ease;
}

@keyframes v28fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   HEADING
   ═══════════════════════════════════════════ */
.v28-auth-heading {
  margin-bottom: var(--gap-md);
}

.v28-auth-heading h2 {
font-size: clamp(1.3rem, 1.6vw, 1.65rem);
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.v28-auth-heading p {
  font-size: clamp(.84rem, 0.9vw, .92rem);
  color: var(--text-muted);
  line-height: 1.45;
}

/* ═══════════════════════════════════════════
   INLINE FIELDS ROW
   ═══════════════════════════════════════════ */
.v28-auth-fields-inline {
  display: flex;
  gap: clamp(12px, 1.2vw, 16px);
  margin-bottom: var(--gap-md);
}

.v28-auth-fields-inline .v28-auth-field {
  flex: 1;
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════
   FIELDS
   ═══════════════════════════════════════════ */
.v28-auth-field {
  margin-bottom: var(--gap-sm);
}

.v28-auth-field label {
  display: block;
font-size: .72rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.v28-auth-field input {
  width: 100%;
  height: clamp(56px, 8vh, 62px);
  padding: 0 16px;
font-size: clamp(.95rem, 1vw, 1.05rem);
  color: var(--text);
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  outline: none;
  transition: var(--tr);
}

.v28-auth-field input::placeholder {
  color: var(--gray-400);
}

.v28-auth-field input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,23,22,.06);
}

/* Name row */
.v28-auth-field-row {
  display: flex;
  gap: clamp(12px, 1.2vw, 16px);
}

.v28-auth-field-row .v28-auth-field {
  flex: 1;
}

/* ═══════════════════════════════════════════
   PASSWORD TOGGLE
   ═══════════════════════════════════════════ */
.v28-auth-pw-wrap {
  position: relative;
}

.v28-auth-pw-wrap input {
  padding-right: 48px;
}

.v28-auth-pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--gray-400);
  transition: var(--tr);
  padding: 4px;
}

.v28-auth-pw-toggle:hover {
  color: var(--text);
}

/* ═══════════════════════════════════════════
   OPTIONS (Remember + Forgot)
   ═══════════════════════════════════════════ */
.v28-auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--gap-md);
}

.v28-auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--text);
  cursor: pointer;
}

.v28-auth-remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: var(--blue);
  cursor: pointer;
}

.v28-auth-forgot {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--tr);
}

.v28-auth-forgot:hover {
  color: var(--coral);
}

/* ═══════════════════════════════════════════
   SUBMIT
   ═══════════════════════════════════════════ */
.v28-auth-submit {
  width: 100%;
  height: clamp(58px, 8.5vh, 64px);
font-size: clamp(1rem, 1.1vw, 1.15rem);
  font-weight: 700;
  color: var(--white);
  background: var(--coral);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--tr);
  letter-spacing: .01em;
  margin-bottom: var(--gap-md);
}

.v28-auth-submit:hover {
  background: var(--coral-hover);
  box-shadow: 0 4px 16px rgba(230,57,70,.25);
  transform: translateY(-1px);
}

.v28-auth-submit:active {
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   DIVIDER
   ═══════════════════════════════════════════ */
.v28-auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--gap-md);
  width: 100%;
  box-sizing: border-box;
}

.v28-auth-divider::before,
.v28-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.v28-auth-divider span {
  font-size: .84rem;
  color: var(--gray-400);
}

/* ═══════════════════════════════════════════
   SOCIAL — Inline Row
   ═══════════════════════════════════════════ */
.v28-auth-social {
  display: flex;
  gap: clamp(10px, 1vw, 14px);
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

.v28-auth-social-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: clamp(54px, 7.5vh, 60px);
  font-size: clamp(.9rem, 0.95vw, 1rem);
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--tr);
  padding: 0 10px;
  box-sizing: border-box;
}

.v28-auth-social-btn:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.v28-auth-social-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   FOOTER / TERMS
   ═══════════════════════════════════════════ */
.v28-auth-footer {
  text-align: center;
  font-size: .88rem;
  color: var(--text-muted);
  margin-top: var(--gap-md);
}

.v28-auth-footer a {
  color: var(--coral);
  font-weight: 600;
  transition: var(--tr);
}

.v28-auth-footer a:hover {
  color: var(--coral-hover);
}

.v28-auth-terms {
  font-size: .76rem;
  color: var(--gray-400);
  text-align: center;
  line-height: 1.55;
  margin-top: var(--gap-sm);
}

.v28-auth-terms a {
  color: var(--text-light);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════
   WooCommerce notices
   ═══════════════════════════════════════════ */
.v28-auth-notices {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — ≤ 540px Mobile
   ═══════════════════════════════════════════ */
@media (max-width: 540px) {
  .v28-auth-page {
    padding: 0 !important;
  }

  .v28-auth-page .container {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .v28-auth-card {
    border-radius: 0;
    padding: 28px 20px;
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 100dvh;
  }

  .v28-auth-panel {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .v28-auth-footer {
    white-space: normal !important;
    text-align: center !important;
    flex-wrap: wrap !important;
  }

  .v28-auth-fields-inline {
    flex-direction: column;
    gap: 0;
  }

  .v28-auth-fields-inline .v28-auth-field {
    margin-bottom: var(--gap-sm);
  }

  .v28-auth-field-row {
    flex-direction: column;
    gap: 0;
  }

  .v28-auth-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — ≤ 380px Small Mobile
   ═══════════════════════════════════════════ */
@media (max-width: 380px) {
.v28-auth-card { padding: 20px 16px; }
.v28-auth-tabs { padding: 3px; }
    .v28-auth-tab { height: 38px; }
    .v28-auth-field input { height: 42px; }
    .v28-auth-submit { height: 44px; }
    .v28-auth-social-btn { height: 40px; }
}

/* ═══════════════════════════════════════════
   LANDSCAPE MOBILE
   ═══════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
.v28-auth-page { padding: 8px 12px; }
.v28-auth-card { padding: 16px 20px; border-radius: 12px; }
.v28-auth-logo { margin-bottom: 6px; }
.v28-auth-heading { margin-bottom: 6px; }
    .v28-auth-field input { height: 36px; }
    .v28-auth-submit { height: 38px; }
    .v28-auth-social-btn { height: 34px; }
.v28-auth-tabs { margin-bottom: 8px; }
    .v28-auth-tab { height: 32px; }
}

/* ═══════════════════════════════════════════
   THEME SPECIFICITY OVERRIDES
   Hello Elementor reset.css uses [type="submit"],
   [type="button"], button — need higher specificity.
   ═══════════════════════════════════════════ */

/* Submit button */
.v28-auth-page button.v28-auth-submit,
.v28-auth-page button.v28-auth-submit[type="submit"] {
  width: 100%;
  height: clamp(58px, 8.5vh, 64px);
  display: flex;
  align-items: center;
  justify-content: center;
font-size: clamp(1rem, 1.1vw, 1.15rem);
  font-weight: 700;
  color: var(--white);
  background: var(--coral);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--tr);
  letter-spacing: .01em;
  margin-bottom: var(--gap-md);
  padding: 0;
  line-height: 1;
}

.v28-auth-page button.v28-auth-submit:hover {
  background: var(--coral-hover);
  box-shadow: 0 4px 16px rgba(230,57,70,.25);
  transform: translateY(-1px);
  color: var(--white);
  border: none;
}

/* Social buttons */
.v28-auth-page button.v28-auth-social-btn,
.v28-auth-page button.v28-auth-social-btn[type="button"] {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: clamp(54px, 7.5vh, 60px);
font-size: clamp(.9rem, 0.95vw, 1rem);
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--tr);
  padding: 0 16px;
}

.v28-auth-page button.v28-auth-social-btn:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  background: var(--white);
}

/* Password toggle */
.v28-auth-page button.v28-auth-pw-toggle,
.v28-auth-page button.v28-auth-pw-toggle[type="button"] {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--gray-400);
  transition: var(--tr);
  padding: 4px;
  width: auto;
  height: auto;
}

.v28-auth-page button.v28-auth-pw-toggle:hover {
  color: var(--text);
  background: none;
  border: none;
}

/* Input fields */
.v28-auth-page .v28-auth-field input[type="text"],
.v28-auth-page .v28-auth-field input[type="email"],
.v28-auth-page .v28-auth-field input[type="password"] {
  width: 100%;
  height: clamp(56px, 8vh, 62px);
  padding: 0 16px;
font-size: clamp(.95rem, 1vw, 1.05rem);
  color: var(--text);
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  outline: none;
  transition: var(--tr);
  box-shadow: none;
  -webkit-appearance: none;
}

.v28-auth-page .v28-auth-field input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,23,22,.06);
}

.v28-auth-page .v28-auth-pw-wrap input[type="password"],
.v28-auth-page .v28-auth-pw-wrap input[type="text"] {
  padding-right: 48px;
}

/* Checkbox */
.v28-auth-page .v28-auth-remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: var(--blue);
  cursor: pointer;
  border: 1.5px solid var(--gray-300);
}

/* Responsive overrides */
@media (max-width: 380px) {
    .v28-auth-page button.v28-auth-submit { height: 44px; }
    .v28-auth-page button.v28-auth-social-btn { height: 40px; }
    .v28-auth-page .v28-auth-field input[type="text"],
  .v28-auth-page .v28-auth-field input[type="email"],
  .v28-auth-page .v28-auth-field input[type="password"] { height: 42px; }
}

@media (max-height: 500px) and (orientation: landscape) {
    .v28-auth-page button.v28-auth-submit { height: 38px; }
    .v28-auth-page button.v28-auth-social-btn { height: 34px; }
    .v28-auth-page .v28-auth-field input[type="text"],
  .v28-auth-page .v28-auth-field input[type="email"],
  .v28-auth-page .v28-auth-field input[type="password"] { height: 36px; }
}

/* ═══════════════════════════════════════════
   APPEND TO BOTTOM OF v28-auth.css
   ═══════════════════════════════════════════ */

/* Hide page title on login/register page */
.woocommerce-account:not(.logged-in) .entry-title {
  display: none !important;
}

/* Footer link no-wrap (prevents "Create one" splitting on mobile) */
.v28-auth-footer {
  white-space: nowrap;
}
