/*!
 * Copyright © 2021-2026 mPro Digital Edge. All Rights Reserved.
 * Proprietary and confidential. Unauthorized copying, modification,
 * distribution, or use of this file, by any means, is strictly prohibited.
 * See the LICENSE file in the repository root.
 */
/*
 * mPro account screens: Sign In, Sign Up, Password Reset, New Password.
 * Layout: light form panel left, dark brand panel right carrying the lines
 * animation (mpro-lines.js). Stacks form-first at tablet and phone widths.
 * Every rule is scoped under body.mpro-auth (layout/mpro.blade.php) so admin-injected
 * head code cannot collide with it.
 */
.mpro-auth {
  --brand: #1D2EFF;
  --brand-hover: #2C54FF;
  --blue-light: #7099FF;
  --blue-light-hover: #9FBDFF;
  --bg-black: #050810;
  --bg-light: #F3F7FF;
  --ink: #0B1024;
  --ink-soft: #4A5270;
  --line: #D5DDF0;
  --field: #FFFFFF;
  --error: #C4261D;
  --placeholder: #6B7390; /* spec section 7: the mockup's #8A93AE is under 4.5:1 on white */
  --icon: #B7C0D6;
  --tint: #E6ECFF;
  --error-tint: #FDECEA;
  --on-brand: #FFFFFF;        /* text on --brand buttons and on the dark panel */
  --card: #FFFFFF;            /* confirmation cards, social buttons */
  --panel-title: #F3F7FF;     /* brand panel display word (same value as --bg-light) */
  --panel-text: #DCE4FF;      /* brand panel name line */
  --font-display: "Archivo Narrow", "Arial Narrow", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
html:has(body.mpro-auth), body.mpro-auth { height: 100%; }
body.mpro-auth {
  margin: 0;
  background: var(--bg-light);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
}
.mpro-auth *, .mpro-auth *::before, .mpro-auth *::after { box-sizing: border-box; }
.mpro-auth [hidden] { display: none !important; }
.mpro-auth img { max-width: 100%; }

.mpro-auth .page {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* ---------- Form panel ---------- */
.mpro-auth .form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 56px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  background: var(--bg-light);
}
.mpro-auth .form-wrap {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.mpro-auth .head { display: flex; flex-direction: column; gap: 14px; }
.mpro-auth .mark { width: 44px; height: 44px; }
.mpro-auth .eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}
.mpro-auth h1 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.mpro-auth .lede { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }

.mpro-auth form { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.mpro-auth .field { display: flex; flex-direction: column; gap: 8px; }
.mpro-auth .field > label:not(.check) {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.mpro-auth .control {
  position: relative;
  display: flex;
  align-items: center;
}
.mpro-auth .control svg.lead {
  position: absolute;
  left: 18px;
  width: 18px;
  height: 18px;
  fill: var(--icon);
  pointer-events: none;
}
.mpro-auth .control input {
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 18px 0 48px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  color: var(--ink);
  font: 500 16px var(--font-body);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.mpro-auth .control input::placeholder { color: var(--placeholder); font-weight: 400; opacity: 1; }
.mpro-auth .control input:hover { border-color: var(--blue-light-hover); }
.mpro-auth .control input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(29, 46, 255, 0.14);
}
.mpro-auth .control:focus-within svg.lead { fill: var(--brand); }
.mpro-auth .control.has-toggle input { padding-right: 84px; }
.mpro-auth .toggle {
  position: absolute;
  right: 5px;
  height: 44px; /* spec section 7: touch targets at least 44px tall */
  min-width: 68px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--brand);
  font: 600 14px var(--font-body);
  cursor: pointer;
}
.mpro-auth .toggle:hover { background: rgba(29, 46, 255, 0.07); }
.mpro-auth .toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.mpro-auth .field.invalid .control input { border-color: var(--error); }
.mpro-auth .err { margin: 0; color: var(--error); font-size: 14px; line-height: 1.45; }
.mpro-auth .err a { color: var(--error); text-decoration: underline; text-underline-offset: 3px; }

.mpro-auth .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mpro-auth .check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-soft);
  cursor: pointer;
  min-height: 44px;
}
.mpro-auth .check input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.mpro-auth .check input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.mpro-auth a { color: var(--brand); text-decoration: none; font-weight: 600; }
.mpro-auth a:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 3px; }
.mpro-auth a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.mpro-auth .row a { font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; }

.mpro-auth .submit {
  height: 56px;
  min-height: 44px;
  margin: 0;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font: 700 17px var(--font-body);
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .15s, transform .15s, box-shadow .15s, opacity .15s;
  box-shadow: 0 10px 24px -12px rgba(29, 46, 255, 0.7);
}
.mpro-auth .submit:hover { background: var(--brand-hover); box-shadow: 0 14px 30px -12px rgba(44, 84, 255, 0.8); }
.mpro-auth .submit:active { transform: translateY(1px); }
.mpro-auth .submit:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; }
.mpro-auth .submit svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; transition: transform .2s; }
.mpro-auth .submit:hover svg { transform: translateX(3px); }
.mpro-auth .submit[disabled] { opacity: .7; cursor: progress; transform: none; }
.mpro-auth a.submit, .mpro-auth a.submit:hover { color: var(--on-brand); text-decoration: none; }

.mpro-auth .status {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}
.mpro-auth .status p { margin: 0; }
.mpro-auth .status p + p { margin-top: 6px; }
.mpro-auth .status.is-error { background: var(--error-tint); color: var(--error); }
.mpro-auth .status.is-error a { color: var(--error); text-decoration: underline; }
.mpro-auth .alt { margin: 0; text-align: center; color: var(--ink-soft); font-size: 15px; }

.mpro-auth .view { display: flex; flex-direction: column; gap: 32px; }
.mpro-auth .view:focus { outline: none; }
.mpro-auth .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mpro-auth .hint { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.mpro-auth .rules {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  font-size: 14px;
  color: var(--ink-soft);
}
.mpro-auth .rules li { display: flex; align-items: center; gap: 8px; }
.mpro-auth .rules li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--icon);
  background: transparent;
  transition: background .15s, border-color .15s;
}
.mpro-auth .rules li.met { color: var(--ink); }
.mpro-auth .rules li.met::before {
  border-color: var(--brand);
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.mpro-auth .check.terms { align-items: flex-start; line-height: 1.45; }
.mpro-auth .check.terms input { margin-top: 2px; flex: none; }
.mpro-auth .field.invalid .check input { outline: 2px solid var(--error); outline-offset: 2px; }

.mpro-auth .done {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}
.mpro-auth .done:focus { outline: none; }
.mpro-auth .done-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tint);
  display: grid;
  place-items: center;
}
.mpro-auth .done-icon svg { width: 24px; height: 24px; stroke: var(--brand); fill: none; stroke-width: 2; }
.mpro-auth .done h2 { margin: 0; font-size: 22px; font-weight: 700; color: var(--ink); }
.mpro-auth .done p { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.mpro-auth .done strong { color: var(--ink); font-weight: 600; word-break: break-all; }
.mpro-auth .linkbtn {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: 600 15px var(--font-body);
  cursor: pointer;
  min-height: 44px;
}
.mpro-auth .linkbtn:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 3px; }
.mpro-auth .linkbtn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.mpro-auth .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  font-size: 15px;
  min-height: 44px;
}
.mpro-auth .back svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* Not in the mockup: reCAPTCHA, social sign-in, the AI and terms fine print. */
.mpro-auth .captcha { align-self: center; min-height: 78px; }
.mpro-auth .social { display: flex; flex-direction: column; gap: 16px; }
.mpro-auth .divider {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.mpro-auth .divider::before, .mpro-auth .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.mpro-auth .social-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.mpro-auth .social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.mpro-auth .social-btn:hover { border-color: var(--blue-light-hover); color: var(--ink); text-decoration: none; }
.mpro-auth .social-btn svg { width: 20px; height: 20px; flex: none; }
.mpro-auth .fine { display: flex; flex-direction: column; gap: 8px; text-align: center; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.mpro-auth .fine p { margin: 0; }
.mpro-auth .fine a { font-weight: 600; }

/* ---------- Brand panel ---------- */
.mpro-auth .brand-panel {
  background: var(--bg-black);
  color: var(--on-brand);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding-block: 56px 48px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  min-height: 560px;
}
.mpro-auth .brand-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.mpro-auth .brand-eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blue-light-hover);
}
.mpro-auth .brand-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(72px, 10vw, 148px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: var(--panel-title);
}
.mpro-auth .brand-title span { color: var(--blue-light); }
.mpro-auth .landing {
  align-self: center;
  width: min(520px, 86%);
  height: 38%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding-top: 40px;
  text-align: center;
}
.mpro-auth .landing img { width: 84px; height: 84px; filter: drop-shadow(0 0 22px rgba(29, 46, 255, .55)); }
.mpro-auth .landing p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--panel-text);
}
.mpro-auth .landing p.sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--blue-light-hover);
}

/* Animation host (contract from mpro-lines-animation.html) */
.mpro-auth .mp-lines { position: relative; isolation: isolate; }
.mpro-auth .mp-lines > :not(.mp-layer) { position: relative; z-index: 1; }
.mpro-auth .mp-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.mpro-auth .mp-layer canvas { display: block; width: 100%; height: 100%; }

/* ---------- Tablet and phone: stack, form first ---------- */
@media (max-width: 960px) {
  .mpro-auth .page { grid-template-columns: minmax(0, 1fr); }
  .mpro-auth .form-panel { padding-block: 48px 56px; }
  .mpro-auth .brand-panel { min-height: 520px; padding-block: 48px 40px; }
  .mpro-auth .landing { height: auto; min-height: 220px; }
}
@media (max-width: 480px) {
  .mpro-auth .form-wrap { gap: 28px; }
  .mpro-auth .field-row, .mpro-auth .rules { grid-template-columns: minmax(0, 1fr); }
  .mpro-auth .brand-panel { min-height: 460px; }
  .mpro-auth .brand-title { font-size: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .mpro-auth * { transition: none !important; }
}
