/* ============================================================================
   Affiliate auth pages — v2 redesign  (login + set-password/reset)
   Scoped under .av2 (added to .container on those pages) so it only retouches
   colour/typography/shape and never fights the layout, responsive menu or modal
   mechanics already in login-signup.css. Tokens + treatment mirror home-v2.css
   / contact-v2.css: teal #33cc99, self-hosted Roboto (already loaded by
   login-signup.css), rounded 10px cards, soft shadow.
   ========================================================================== */

.av2 {
  --teal: #33cc99;
  --teal-dark: #2db88a;
  --text: #232323;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --surface: #f6f7f8;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 14px rgba(0, 0, 0, .05);
  --ring: 0 0 0 3px rgba(51, 204, 153, .15);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* kill the #484848 leak from login-signup.css `*{color:#484848}` on incidental text */
.av2 p, .av2 span, .av2 li, .av2 h1, .av2 h2, .av2 h3, .av2 label { color: var(--text); }

/* ---------------------------- header ---------------------------- */
.av2 header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: .6rem clamp(1rem, 4vw, 2.5rem);
}
.av2 .logo { height: 50px; }
.av2 .logo a { display: inline-flex; align-items: center; height: 100%; }
.av2 header img { height: 100%; width: auto; max-height: 50px; }

.av2 .navbar { padding-right: 0; }
.av2 .navbar ul li a {
  color: var(--text);
  font-size: .95rem;
  font-weight: 500;
}
.av2 .container a:hover,
.av2 .navbar ul li a:hover { background: transparent; color: var(--teal); }

/* the "Sell your Activity" pill → solid teal like the home header CTA */
.av2 .container a.tms {
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: 8px;
  height: 2rem;
  font-weight: 500;
}
.av2 .container a.tms:hover { background: var(--teal-dark); color: #fff; }

/* hamburger bars → neutral ink (mobile) */
.av2 .hamburger span,
.av2 .hamburger span::before,
.av2 .hamburger span::after { background-color: var(--text); }

/* ---------------------------- page ---------------------------- */
.av2 main { background: var(--surface); padding-top: clamp(2rem, 6vw, 3.5rem); }
.av2 main .main-content { align-items: flex-start; }

/* ---------------------------- auth card ---------------------------- */
.av2 .login-block { width: 100%; max-width: 30rem; }
.av2 .login-block .heading { text-align: center; }
.av2 .heading h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 .5rem;
}
.av2 .heading p { color: var(--muted); font-size: 1rem; font-weight: 400; line-height: 1.5; }

.av2 .login-form {
  width: 100%;
  margin: 1.75rem 0 0;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.av2 .login-title { height: auto; margin-bottom: 1.25rem; }
.av2 .login-title p { font-size: 1.125rem; font-weight: 500; color: var(--text); }

/* ---------------------------- fields ---------------------------- */
.av2 .input-form { margin-bottom: 1.1rem; }
.av2 .input-form label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .4rem;
}
.av2 .input-form .input { position: relative; }
.av2 .input-form input {
  width: 100%;
  height: 46px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 .9rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  text-indent: 0;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.av2 .input-form input:focus {
  outline: 0;
  border-color: var(--teal);
  background: var(--white);
  box-shadow: var(--ring);
}
.av2 .input-form input[type="file"] { height: auto; padding: .7rem .9rem; cursor: pointer; }
.av2 .input-form.error input,
.av2 .input.error input,
.av2 input.error { border-color: #e5484d; background: #fff5f5; }

/* forgot-password link */
.av2 #forgot-password {
  display: block;
  width: fit-content;
  margin: .55rem 0 0 auto;
  color: var(--teal);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
}
.av2 #forgot-password:hover { color: var(--teal-dark); text-decoration: underline; }

/* ---------------------------- password eye toggle ---------------------------- */
.av2 .pw-wrap { position: relative; display: block; }
.av2 .pw-wrap input { padding-right: 46px; }
.av2 .pw-toggle {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: var(--muted);
}
.av2 .pw-toggle:hover { color: var(--text); }
.av2 .pw-toggle svg { display: block; }

/* ---------------------------- buttons ---------------------------- */
.av2 .action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 1.5rem 0 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s ease;
}
.av2 .action-button:hover { background: var(--teal-dark); }
.av2 .action-button:disabled { opacity: .65; cursor: default; }

/* ---------------------------- sign-up prompt ---------------------------- */
.av2 .signup-button { margin-top: 1.5rem; text-align: center; }
.av2 .signup-button h2 { font-size: .95rem; font-weight: 400; color: var(--muted); }
.av2 .signup-button h2 a {
  color: var(--teal);
  font-weight: 500;
  text-transform: none;
}
.av2 .signup-button h2 a:hover { background: transparent; color: var(--teal-dark); text-decoration: underline; }

/* ---------------------------- forgot-password modal ---------------------------- */
.av2 .forgotpass-modal { background-color: rgba(10, 12, 14, .45); }
.av2 .forgotpass-modal .modal {
  width: min(92vw, 25rem);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .22);
}
.av2 .forgotpass-modal .modal .body { margin-top: .25rem; }
.av2 .forgotpass-modal .modal #forgot-password-close {
  border: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.av2 .forgotpass-modal .modal #forgot-password-close span::before,
.av2 .forgotpass-modal .modal #forgot-password-close span::after { background-color: var(--text); }
.av2 .forgotpass-modal .modal .action-button { margin-top: 1rem; }

/* ---------------------------- slim footer (matches home-v2 chrome) ---------------------------- */
.av2 .av2-footer {
  margin-top: auto;                      /* pin to the bottom of the flex-column .container */
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 1.1rem clamp(1rem, 4vw, 2.5rem);
}
.av2 .av2-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
}
.av2 .av2-footer__logo { display: inline-flex; align-items: center; }
.av2 .av2-footer__logo img { height: 28px; width: auto; display: block; }
.av2 .av2-footer__links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; flex: 1 1 auto; }
.av2 .av2-footer__links a { color: var(--muted); font-size: .9rem; font-weight: 400; text-decoration: none; }
.av2 .av2-footer__links a:hover { color: var(--teal); background: transparent; }
.av2 .av2-footer__copy { color: var(--muted); font-size: .9rem; white-space: nowrap; }
@media (max-width: 560px) {
  .av2 .av2-footer__inner { flex-direction: column; align-items: flex-start; }
}
