/* =============================================================
   AskPerTask — sign-up confirmation journey (apt-email-verification.css)
   ACCOUNT-ONBOARDING-MOBILE-1A (AUTH track)

   .apt-ev--check     "Check your email" panel that replaces the register form after sign-up
   .apt-ev--invalid   used / wrong confirmation link state on /account/verify-email/
   .apt-ev-inline     Resend offered inside a refused login
   .apt-ev-didnt      "Didn't get the confirmation email?" on /account/login/
   Tokens come from apt-login-register.css (--apt-lr-*), with fallbacks.
   ============================================================= */

.apt-ev,
.apt-ev-inline,
.apt-ev-didnt {
  --apt-ev-green: var(--apt-lr-green, #1FA34A);
  --apt-ev-green-dark: var(--apt-lr-green-dark, #168238);
  --apt-ev-text: var(--apt-lr-text, #1A1A1A);
  --apt-ev-muted: var(--apt-lr-muted, #6B7280);
  --apt-ev-border: var(--apt-lr-border, #E5E7EB);
  --apt-ev-radius: var(--apt-lr-radius, 8px);
}

.apt-ev {
  color: var(--apt-ev-text);
  text-align: left;
}

.apt-ev--check {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.apt-ev__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--apt-lr-green-light, #EAF7EE);
  color: var(--apt-ev-green-dark);
}

.apt-ev__title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--apt-ev-text);
}

.apt-ev__title:focus {
  outline: none;
}

.apt-ev__title:focus-visible {
  outline: 2px solid var(--apt-lr-blue, #2D6CDF);
  outline-offset: 3px;
  border-radius: 4px;
}

.apt-ev__lead,
.apt-ev__mandatory,
.apt-ev__hint,
.apt-ev__small {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.apt-ev__lead--warn {
  padding: 10px 12px;
  border-radius: var(--apt-ev-radius);
  background: #FFF7E6;
  border: 1px solid #F5D08A;
  color: #7A4B00;
}

.apt-ev__email {
  word-break: break-all;
}

.apt-ev__mandatory {
  margin-top: 6px;
  font-weight: 600;
}

.apt-ev__hint,
.apt-ev__small {
  color: var(--apt-ev-muted);
}

.apt-ev__steps {
  margin: 0;
  padding-left: 1.25em;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--apt-ev-text);
}

.apt-ev__steps li + li {
  margin-top: 4px;
}

.apt-ev__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.apt-ev__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: 0 16px;
  border-radius: var(--apt-ev-radius);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.apt-ev__btn--sm {
  min-height: 44px;
  width: auto;
  margin-top: 8px;
}

.apt-ev__btn--primary {
  background: var(--apt-ev-green);
  color: #fff;
}

.apt-ev__btn--primary:hover,
.apt-ev__btn--primary:focus-visible {
  background: var(--apt-ev-green-dark);
  color: #fff;
}

.apt-ev__btn--ghost {
  background: #fff;
  color: var(--apt-ev-text);
  border-color: var(--apt-ev-border);
}

.apt-ev__btn--ghost:hover {
  border-color: #C9CDD3;
}

.apt-ev__btn:focus-visible,
.apt-ev__link:focus-visible,
.apt-ev-didnt__summary:focus-visible {
  outline: 2px solid var(--apt-lr-blue, #2D6CDF);
  outline-offset: 2px;
}

.apt-ev__btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.apt-ev__status {
  margin: 0;
  min-height: 1px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--apt-ev-muted);
}

.apt-ev__status:empty {
  display: none;
}

.apt-ev__status[data-tone="ok"] { color: var(--apt-ev-green-dark); }
.apt-ev__status[data-tone="warn"] { color: #7A4B00; }
.apt-ev__status[data-tone="error"] { color: #B91C1C; }

.apt-ev__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding-top: 4px;
  border-top: 1px solid var(--apt-ev-border);
}

.apt-ev__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--apt-lr-blue, #2D6CDF);
  text-decoration: none;
  cursor: pointer;
}

.apt-ev__link:hover {
  text-decoration: underline;
}

/* ---- Invalid / used link page ---- */

.apt-ev--invalid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

body.hp-template--user-email-verify-page .apt-ev--invalid p {
  margin: 0;
}

.apt-ev--invalid .apt-ev__resend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--apt-ev-border);
}

/* ---- Inline resend in a refused login ---- */

.apt-ev-inline {
  margin-top: 6px;
}

.apt-ev-inline .apt-ev__status {
  margin-top: 6px;
  color: inherit;
}

/* ---- Login page: "Didn't get the confirmation email?" ---- */

.apt-ev-didnt {
  max-width: 440px;
  margin: 14px auto 0;
  padding: 0 4px;
  font-size: 0.875rem;
  color: var(--apt-lr-muted, #6B7280);
  box-sizing: border-box;
}

.apt-ev-didnt__summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--apt-lr-blue, #2D6CDF);
  cursor: pointer;
  list-style: none;
}

.apt-ev-didnt__summary::-webkit-details-marker {
  display: none;
}

.apt-ev-didnt__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--apt-lr-border, #E5E7EB);
  border-radius: var(--apt-lr-radius-lg, 16px);
}

.apt-ev-didnt__label {
  font-weight: 600;
  color: var(--apt-lr-text, #1A1A1A);
}

.apt-ev-didnt__input {
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--apt-lr-border, #E5E7EB);
  border-radius: var(--apt-lr-radius, 8px);
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.apt-ev-didnt__input:focus {
  outline: none;
  border-color: var(--apt-lr-blue, #2D6CDF);
  box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.14);
}

@media (min-width: 480px) {
  .apt-ev--check .apt-ev__actions {
    flex-direction: row;
  }

  .apt-ev--check .apt-ev__actions .apt-ev__btn,
  .apt-ev--check .apt-ev__actions .apt-ev__hint {
    flex: 1 1 0;
  }
}
