/* =========================================================
   CNCTASPHR PASSWORD RESET PAGE
   Matches the public login page and current site layout
========================================================= */

:root {
  --cnctasphr-password-reset-blue: #0866ff;
  --cnctasphr-password-reset-blue-light: #32abef;
  --cnctasphr-password-reset-ink: #0f172a;
  --cnctasphr-password-reset-muted: #64748b;
  --cnctasphr-password-reset-line: rgba(15, 23, 42, 0.10);
  --cnctasphr-password-reset-shadow:
    0 20px 55px rgba(15, 23, 42, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
}

body.cnctasphr-password-reset-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--cnctasphr-password-reset-ink);
  background:
    linear-gradient(
      rgba(238, 242, 247, 0.46),
      rgba(238, 242, 247, 0.46)
    ),
    url("/assets/brand/body-bg-cnctasphr.png")
    center top / cover fixed no-repeat;
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

/* =========================================================
   PUBLIC HEADER
========================================================= */

.cnctasphr-password-reset-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.cnctasphr-password-reset-header-container {
  display: flex;
  align-items: center;
  width: min(1380px, calc(100% - 72px));
  min-height: 106px;
  margin: 0 auto;
  padding: 14px 0;
}

.cnctasphr-password-reset-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  color: inherit;
  line-height: 1;
  text-decoration: none;
}

.cnctasphr-password-reset-wordmark {
  display: block;
  color: var(--cnctasphr-password-reset-blue-light);
  font-size: clamp(1.9rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.065em;
  white-space: nowrap;
}

.cnctasphr-password-reset-pronunciation {
  display: block;
  margin-top: 5px;
  color: #050505;
  font-size: 1.05rem;
  /*font-weight: 900;*/
  line-height: 1;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.cnctasphr-password-reset-tagline {
  display: block;
  margin-top: 5px;
  color: rgba(59, 92, 180, 0.62);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* =========================================================
   PAGE LAYOUT
========================================================= */

.cnctasphr-password-reset-main {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1380px, calc(100% - 36px));
  min-height: calc(100vh - 106px);
  margin: 0 auto;
  padding: 40px 18px;
}

.cnctasphr-password-reset-card {
  width: min(100%, 500px);
  padding: 42px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 26px;
  box-shadow: var(--cnctasphr-password-reset-shadow);
  backdrop-filter: blur(20px);
}

.cnctasphr-password-reset-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  color: #ffffff;
  background: #111827;
  border-radius: 18px;
  box-shadow: 5px 5px 0 rgba(8, 102, 255, 0.28);
  font-size: 1.2rem;
}

.cnctasphr-password-reset-heading {
  margin-bottom: 26px;
  text-align: center;
}

.cnctasphr-password-reset-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--cnctasphr-password-reset-blue);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cnctasphr-password-reset-heading h1 {
  margin: 0;
  color: var(--cnctasphr-password-reset-ink);
  font-size: clamp(1.9rem, 5vw, 2.35rem);
  /*font-weight: 900;*/
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.cnctasphr-password-reset-heading p {
  margin: 9px auto 0;
  color: #475569;
  font-size: 0.91rem;
  line-height: 1.55;
}

/* =========================================================
   FORM
========================================================= */

.cnctasphr-password-reset-form {
  display: grid;
  gap: 20px;
}

.cnctasphr-password-reset-field {
  display: grid;
  gap: 7px;
}

.cnctasphr-password-reset-field label {
  color: var(--cnctasphr-password-reset-ink);
  font-size: 0.82rem;
  /*font-weight: 850;*/
}

.cnctasphr-password-reset-input {
  position: relative;
}

.cnctasphr-password-reset-input i {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  color: #8296c9;
  transform: translateY(-50%);
  pointer-events: none;
}

.cnctasphr-password-reset-input input {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px 12px 42px;
  color: var(--cnctasphr-password-reset-ink);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  outline: none;
  font: inherit;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.cnctasphr-password-reset-input input:focus {
  background: #ffffff;
  border-color: var(--cnctasphr-password-reset-blue);
  box-shadow: 0 0 0 4px rgba(8, 102, 255, 0.12);
}

.cnctasphr-password-reset-input input::placeholder {
  color: #94a3b8;
}

/* =========================================================
   MESSAGES
========================================================= */

.cnctasphr-password-reset-message {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 20px;
  padding: 12px 13px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.45;
}

.cnctasphr-password-reset-message i {
  margin-top: 2px;
}

.cnctasphr-password-reset-error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.cnctasphr-password-reset-success {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

/* =========================================================
   SKETCH BUTTONS
========================================================= */

.cnctasphr-password-reset-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 16px;
  color: #111111;
  background-color: #ffffff;
  background-image:
    repeating-linear-gradient(
      -35deg,
      transparent 0 7px,
      rgba(17, 17, 17, 0.045) 7px 8px
    );
  border: 2px solid #111111;
  border-radius: 9px 13px 8px 12px;
  /*outline: 1px solid rgba(17, 17, 17, 0.42);*/
  outline-offset: 2px;
  box-shadow:
    4px 4px 0 #111111,
    inset 0 0 0 1px rgba(17, 17, 17, 0.10);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    color 0.14s ease,
    background-color 0.14s ease;
}

.cnctasphr-password-reset-btn-primary {
  width: 100%;
  color: #ffffff;
  background-color: #111111;
  background-image:
    repeating-linear-gradient(
      35deg,
      transparent 0 7px,
      rgba(255, 255, 255, 0.085) 7px 8px
    );
  box-shadow:
    4px 4px 0 #777777,
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.cnctasphr-password-reset-btn:hover {
  color: #ffffff;
  background-color: #111111;
  background-image:
    repeating-linear-gradient(
      35deg,
      transparent 0 7px,
      rgba(255, 255, 255, 0.085) 7px 8px
    );
  transform: translate(-1px, -1px);
  box-shadow:
    6px 6px 0 #111111,
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.cnctasphr-password-reset-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 #111111;
}

.cnctasphr-password-reset-back {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #dbe3ee;
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
  flex: 0 0 auto;
  padding: 48px 20px;
  color: #cbd5e1;
  background: #0b1220;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-container {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.25fr)
    repeat(2, minmax(150px, 0.75fr))
    minmax(180px, 0.85fr);
  gap: 40px;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.footer-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}

.footer-subtitle,
.footer-meta,
.footer-ip {
  color: #64748b;
}

.footer-subtitle {
  margin-top: 4px;
  font-size: 0.85rem;
}

.footer-meta {
  max-width: 260px;
  margin: 10px 0 0;
  font-size: 0.8rem;
}

.footer-group {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  margin-bottom: 10px;
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-group a {
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 0.85rem;
  text-decoration: none;
}

.footer-group a:hover {
  color: #ffffff;
}

.footer-right {
  font-size: 0.85rem;
}

.footer-ip {
  max-width: 240px;
  margin-top: 8px;
  font-size: 0.75rem;
}

.mobile-footer {
  display: none;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {
  .cnctasphr-password-reset-header-container {
    width: calc(100% - 28px);
    min-height: 88px;
    padding: 12px 0;
  }

  .cnctasphr-password-reset-wordmark {
    font-size: 1.95rem;
  }

  .cnctasphr-password-reset-pronunciation {
    font-size: 0.98rem;
  }

  .cnctasphr-password-reset-tagline {
    font-size: 0.68rem;
  }

  .cnctasphr-password-reset-main {
    min-height: calc(100vh - 88px);
    padding: 24px 7px 90px;
  }

  .cnctasphr-password-reset-card {
    padding: 30px 24px;
    border-radius: 22px;
  }

  .footer {
    display: none;
  }

  .mobile-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
  }

  .mobile-footer-links a {
    color: #94a3b8;
    font-size: 0.72rem;
    text-decoration: none;
  }

  .mobile-footer-copy {
    margin-top: 6px;
    color: #64748b;
    font-size: 0.68rem;
  }
}

@media (max-width: 480px) {
  .cnctasphr-password-reset-header-container {
    justify-content: center;
  }

  .cnctasphr-password-reset-logo {
    align-items: center;
    text-align: center;
  }

  .cnctasphr-password-reset-wordmark {
    font-size: 1.8rem;
  }

  .cnctasphr-password-reset-card {
    padding: 26px 18px;
  }

  .cnctasphr-password-reset-back
  .cnctasphr-password-reset-btn {
    width: 100%;
  }
}