:root {
  --plug-teal: #00e5d9;
  --plug-navy: #0b2a3a;
  --plug-black: #0a0a0a;
  --plug-light: #f4f6f8;
  --plug-gray: #9ca3af;
  --plug-muted: #62737d;
  --plug-white: #fff;
  font-family: "Montserrat", "Avenir Next", sans-serif;
  color: var(--plug-black);
  background: var(--plug-white);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { min-height: 100vh; min-height: 100svh; background: var(--plug-white); }
button, input { font: inherit; }
[hidden] { display: none !important; }

.recovery-page {
  display: grid;
  grid-template-columns: minmax(420px, .88fr) minmax(0, 1.12fr);
  min-height: 100vh;
  min-height: 100svh;
  background: var(--plug-white);
}

.recovery-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px clamp(28px, 7vw, 112px);
  background: var(--plug-white);
}

.recovery-content { width: 100%; max-width: 390px; animation: rise-in .55s ease-out both; }
.brand-block { margin: 0 0 38px; text-align: center; }
.brand-logo { display: block; width: 258px; max-width: 88%; height: auto; margin: 0 auto 18px; object-fit: contain; }
.brand-kicker { margin: 0; color: var(--plug-navy); font-size: 12px; font-weight: 700; letter-spacing: .29em; }
.brand-kicker span { padding: 0 5px; color: var(--plug-teal); }
.brand-tagline { margin: 9px 0 0; color: var(--plug-gray); font-size: 10px; font-weight: 500; letter-spacing: .18em; line-height: 1.6; }

.page-title { margin: 0; color: var(--plug-navy); font-size: clamp(23px, 2.4vw, 27px); font-weight: 700; letter-spacing: -.04em; text-align: center; }
.page-intro { margin: 10px 0 26px; color: var(--plug-muted); font-size: 13px; line-height: 1.7; text-align: center; }
.field-group { margin: 0 0 16px; }
.field-label { display: block; margin: 0 0 8px 2px; color: var(--plug-navy); font-size: 12px; font-weight: 600; }
.input-shell { position: relative; display: flex; align-items: center; min-height: 56px; border: 1px solid rgba(11, 42, 58, .08); border-radius: 14px; background: var(--plug-light); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.input-shell:focus-within { border-color: #168f91; background: var(--plug-white); box-shadow: 0 0 0 3px rgba(0, 229, 217, .22); }
.field-icon { flex: 0 0 auto; width: 20px; height: 20px; margin-left: 15px; color: var(--plug-navy); opacity: .8; }
.field-input { width: 100%; min-width: 0; height: 54px; padding: 0 15px; border: 0; outline: 0; border-radius: 14px; background: transparent; color: var(--plug-navy); font-size: 14px; font-weight: 500; }
.field-input::placeholder { color: var(--plug-gray); opacity: 1; }
.password-toggle { display: grid; flex: 0 0 48px; place-items: center; width: 48px; height: 48px; margin-right: 3px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--plug-gray); cursor: pointer; }
.password-toggle:hover { color: var(--plug-navy); }
.password-toggle svg { width: 20px; height: 20px; }
.password-toggle [hidden] { display: none; }

.recovery-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 58px; margin-top: 22px; padding: 12px 24px; border: 0; border-radius: 14px; background: var(--plug-teal); color: var(--plug-navy); font-size: 15px; font-weight: 700; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.recovery-button:hover { transform: translateY(-1px); background: #12d8cf; box-shadow: 0 8px 22px rgba(0, 229, 217, .2); }
.recovery-button:active { transform: translateY(0); }
.recovery-button:disabled { opacity: .65; cursor: wait; transform: none; box-shadow: none; }
.recovery-button svg { width: 20px; height: 20px; }
.password-toggle:focus-visible, .recovery-button:focus-visible, .text-link:focus-visible, .secondary-button:focus-visible { outline: 3px solid rgba(11, 42, 58, .75); outline-offset: 3px; }

.message { display: none; margin: 0 0 14px; padding: 12px 14px; border: 1px solid; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.message.show { display: block; }
.message.error { border-color: #fecaca; background: #fef2f2; color: #a72c26; }
.message.success { border-color: rgba(22, 143, 145, .25); background: #eefafa; color: var(--plug-navy); }

.back-row { margin: 22px 0 0; text-align: center; }
.text-link { display: inline-block; border-radius: 2px; color: #168f91; font-size: 12px; font-weight: 600; text-decoration: none; transition: color .18s ease; }
.text-link:hover { color: var(--plug-navy); }
.photo-panel { position: relative; min-width: 0; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--plug-navy); }
.photo-panel::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .94) 5%, rgba(255, 255, 255, .6) 16%, rgba(255, 255, 255, .18) 30%, rgba(255, 255, 255, 0) 46%); pointer-events: none; }
.photo-image { display: block; width: 100%; height: 100%; min-height: inherit; object-fit: cover; object-position: center; }
.photo-shade { position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent 0%, rgba(11, 42, 58, .5) 100%); pointer-events: none; }
.photo-caption { position: absolute; z-index: 2; right: 24px; bottom: 32px; left: clamp(24px, 5vw, 72px); margin: 0; color: var(--plug-white); font-size: 11px; font-weight: 600; letter-spacing: .2em; line-height: 1.5; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }

.state-panel { padding: 20px; border: 1px solid rgba(11, 42, 58, .08); border-radius: 16px; background: var(--plug-light); text-align: center; }
.state-mark { display: grid; width: 44px; height: 44px; place-items: center; margin: 0 auto 14px; border: 1px solid rgba(22, 143, 145, .25); border-radius: 50%; background: rgba(0, 229, 217, .15); color: var(--plug-navy); }
.state-mark svg { width: 21px; height: 21px; }
.state-title { margin: 0 0 8px; color: var(--plug-navy); font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.state-copy { margin: 0; color: #53636c; font-size: 12px; line-height: 1.7; }
.email-display { overflow-wrap: anywhere; margin: 16px 0; padding: 13px 14px; border: 1px solid rgba(11, 42, 58, .08); border-radius: 11px; background: var(--plug-white); color: var(--plug-navy); font-size: 13px; font-weight: 600; }
.state-guidance { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--plug-teal); border-radius: 0 9px 9px 0; background: var(--plug-white); color: #53636c; font-size: 11px; line-height: 1.65; text-align: left; }
.secondary-button { margin-top: 18px; padding: 5px 8px; border: 0; border-radius: 4px; background: transparent; color: #168f91; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.form-disabled { opacity: .58; }
.form-disabled .field-input { pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .recovery-page { display: flex; flex-direction: column; }
  .recovery-panel { flex: 1 0 auto; padding: 40px 26px 32px; }
  .recovery-content { max-width: 430px; }
  .brand-block { margin-bottom: 30px; }
  .photo-panel { flex: 0 0 auto; height: min(34vh, 310px); min-height: 220px; }
  .photo-panel::before { background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, .94) 8%, rgba(255, 255, 255, .65) 24%, rgba(255, 255, 255, .2) 44%, rgba(255, 255, 255, 0) 66%); }
  .photo-image { min-height: 100%; }
  .photo-caption { bottom: 22px; }
}
@media (max-width: 360px) {
  .recovery-panel { padding-right: 20px; padding-left: 20px; }
  .brand-kicker { font-size: 11px; letter-spacing: .22em; }
  .brand-tagline { font-size: 9px; letter-spacing: .12em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
