@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@600;700;800&display=swap');

:root {
  --auth-white: #ffffff;
  --auth-blue: #2563eb;
  --auth-blue-dark: #1e293b;
  --auth-text: #111827;
  --auth-muted: #6b7280;
  --auth-input-bg: #f3f4f6;
  --auth-input-border: #d1d5db;
  --auth-danger: #dc2626;
  --auth-success: #16a34a;
  --navy-pro: #1A2B4C;
  --z-green: #2ecc71;
}

/* ── Login minimaliste pro (Amiantix) ─────────────────────────── */
.auth-page--minimal {
  background: #fafbfc;
  color: var(--auth-text);
}

.auth-shell--single {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
  justify-content: center;
  padding: 24px;
}

.auth-card--minimal {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid #eceff5;
  border-radius: 16px;
  box-shadow: 0 28px 64px rgba(26, 43, 76, .08);
  padding: 48px clamp(28px, 6vw, 56px);
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}

.auth-card__brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 36px;
}

.auth-card__brand img {
  height: 38px;
  width: auto;
}

.auth-card__head {
  margin-bottom: 28px;
  text-align: left;
}

.auth-card__eyebrow {
  margin: 0 0 12px;
  color: var(--z-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.auth-card__title {
  margin: 0 0 8px;
  color: var(--navy-pro);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.auth-card__lead {
  margin: 0;
  color: #5b6478;
  font-size: 14px;
  line-height: 1.55;
}

.auth-form {
  width: 100%;
}

.auth-submit--navy {
  background: var(--navy-pro);
  box-shadow: 0 14px 30px rgba(26, 43, 76, .22);
}

.auth-submit--navy:hover {
  filter: none;
  background: #0f1d36;
  box-shadow: 0 16px 34px rgba(26, 43, 76, .28);
}

.auth-reassure {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid #e3e7ef;
  border-left: 3px solid var(--z-green);
  border-radius: 10px;
  background: #f7faf8;
  color: #4b5468;
  font-size: 12.5px;
  line-height: 1.55;
}

.auth-reassure a {
  color: var(--navy-pro);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 540px) {
  .auth-card--minimal {
    padding: 36px 22px;
    border-radius: 14px;
  }
  .auth-card__title { font-size: 26px; }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

.auth-page {
  min-height: 100vh;
  font-family: 'Inter', 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--auth-white);
}

.auth-shell {
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-panel {
  position: relative;
  overflow: hidden;
  padding: 42px 44px;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.auth-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/img/webp/photo_login_register.webp') center / cover no-repeat;
  transform: scale(1.03);
}

.auth-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 8%, rgba(37, 99, 235, 0.64) 100%);
}

.auth-brand,
.auth-title,
.auth-sub {
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
}

.auth-brand img {
  height: 120px;
  width: auto;
}

.auth-title {
  margin: auto 0 10px;
  max-width: 560px;
  align-self: center;
  text-align: center;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-sub {
  margin: 0 0 auto;
  max-width: 560px;
  align-self: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
  font-size: 15px;
}

.auth-card {
  background: var(--auth-white);
  padding: clamp(28px, 5vw, 64px) clamp(22px, 7vw, 86px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.auth-card > h2,
.auth-card > .auth-card-sub,
.auth-card > form,
.auth-card > .auth-error-box,
.auth-card > .auth-success-box,
.auth-card > .auth-info-box,
.auth-card > .auth-foot {
  width: min(100%, 340px);
}

.auth-card h2,
.auth-card p.auth-card-sub {
  text-align: left;
}

.auth-card h2 {
  color: var(--auth-text);
  margin: 0 0 8px;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 600;
}

.auth-card p.auth-card-sub {
  color: var(--auth-muted);
  margin: 0 0 26px;
  font-size: 14px;
}

.auth-error-box,
.auth-success-box,
.auth-info-box {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
}

.auth-error-box {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  padding: 10px 12px;
  border-radius: 8px;
}

.auth-success-box {
  color: #16a34a;
}

.auth-info-box {
  color: #1e40af;
}

.auth-error-box p,
.auth-success-box p,
.auth-info-box p {
  margin: 0;
}

.auth-field {
  margin-bottom: 15px;
}

.auth-field ul {
  margin: 6px 0 0;
  padding-left: 16px;
  color: #b91c1c;
  font-size: 12px;
}

.auth-label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}

.auth-input {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 14px;
  background: var(--auth-input-bg);
  color: var(--auth-text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input::placeholder {
  color: #9ca3af;
}

.auth-input:focus {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.auth-input[readonly] {
  background: #eef0f4;
  border-color: transparent;
  color: #334155;
  cursor: not-allowed;
}

.auth-input[readonly]:focus {
  border-color: transparent;
  box-shadow: none;
}

.auth-input.is-invalid {
  border-color: var(--auth-danger);
}

.auth-input.is-valid {
  border-color: var(--auth-success);
}

.auth-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.auth-link {
  color: var(--auth-blue);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.auth-pass-wrap {
  position: relative;
}

.auth-pass-wrap .auth-input {
  padding-right: 44px;
}

.auth-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-eye svg {
  width: 18px;
  height: 18px;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 4px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.auth-check.is-invalid {
  border-color: #fca5a5;
  background: #fff7f7;
}

.auth-check input[type='checkbox'] {
  margin-top: 2px;
  accent-color: var(--auth-blue);
}

.auth-check.is-invalid input[type='checkbox'] {
  outline: 2px solid rgba(220, 38, 38, 0.22);
  outline-offset: 2px;
}

.auth-check label {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.45;
}

.auth-submit {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 13px 15px;
  background: linear-gradient(92deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
  transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.32);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-resend-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  color: #16a34a;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.auth-resend-btn:hover:not(:disabled) {
  color: #15803d;
}

.auth-resend-btn:disabled {
  color: #9ca3af;
  cursor: not-allowed;
  text-decoration: none;
}

.auth-resend-btn svg {
  flex-shrink: 0;
}

.auth-foot {
  margin: 13px 0 0;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.45;
}

.auth-foot + .auth-foot {
  margin-top: 18px;
}

.auth-foot a {
  color: var(--auth-blue);
  font-weight: 600;
  text-decoration: none;
}

.auth-link:hover,
.auth-foot a:hover {
  color: #1d4ed8;
}

.auth-msg {
  font-size: 12px;
  margin-top: 6px;
  min-height: 16px;
}

.auth-terms-msg {
  margin-top: 2px;
  margin-bottom: 14px;
  padding-left: 4px;
  min-height: 15px;
  font-size: 11px;
}

.auth-msg.error {
  color: #b91c1c;
}

.auth-msg.ok {
  color: #15803d;
}

.auth-mobile-logo {
  display: none;
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    display: none;
  }

  .auth-card {
    min-height: 100vh;
    padding: 28px 20px;
  }

  .auth-card h2 {
    font-size: 24px;
  }

  .auth-mobile-logo {
    display: flex;
    justify-content: center;
    width: min(100%, 340px);
    margin-bottom: 24px;
  }

  .auth-mobile-logo img {
    height: 72px;
    width: auto;
  }
}

.verify-page {
  min-height: 100vh;
  margin: 0;
  font-family: 'Inter', 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #0f172a;
  background: #0f172a;
}

.verify-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
}

.verify-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 42px;
  color: #fff;
  background: #111827;
}

.verify-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/img/webp/photo_login_register.webp') center / cover no-repeat;
  opacity: 0.38;
  transform: scale(1.04);
}

.verify-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(29, 78, 216, 0.72));
}

.verify-brand,
.verify-hero-copy {
  position: relative;
  z-index: 1;
}

.verify-brand {
  width: fit-content;
}

.verify-brand img {
  height: 112px;
  width: auto;
  display: block;
}

.verify-hero-copy {
  margin: auto 0 120px;
  max-width: 560px;
}

.verify-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.verify-hero h1 {
  margin: 18px 0 12px;
  max-width: 520px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.04;
  font-weight: 800;
}

.verify-hero p {
  margin: 0;
  max-width: 500px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  line-height: 1.7;
}

.verify-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 72px);
  background: #f8fafc;
}

.verify-card {
  width: min(100%, 470px);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.verify-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.verify-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #2563eb;
}

.verify-icon svg {
  width: 24px;
  height: 24px;
}

.verify-card h2 {
  margin: 0 0 4px;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 750;
  color: #0f172a;
}

.verify-card-head p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.verify-card-head strong {
  display: inline-block;
  max-width: 260px;
  vertical-align: bottom;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #2563eb;
  font-weight: 700;
}

.verify-alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

.verify-alert-success {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.verify-alert-warning {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e40af;
}

.verify-alert-error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.verify-form {
  display: grid;
  gap: 18px;
}

.verify-field label {
  display: block;
  margin-bottom: 10px;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
}

.verify-code-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.verify-code-preview {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.verify-code-preview span {
  height: 58px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  cursor: text;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.verify-code-preview span.is-filled {
  background: #fff;
  border-color: #2563eb;
  color: #0f172a;
}

.verify-code-preview span.is-active {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.verify-field p {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 12px;
}

.verify-submit {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.verify-submit:hover {
  background: #1d4ed8;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.22);
}

.verify-submit:active {
  transform: translateY(1px);
}

.verify-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.verify-actions form {
  margin: 0;
}

.verify-actions button,
.verify-actions a {
  border: 0;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s ease;
}

.verify-actions button:hover,
.verify-actions a:hover {
  color: #2563eb;
}

@media (max-width: 860px) {
  .verify-shell {
    grid-template-columns: 1fr;
  }

  .verify-hero {
    min-height: 280px;
    padding: 28px 24px;
  }

  .verify-brand img {
    height: 82px;
  }

  .verify-hero-copy {
    margin: 32px 0 36px;
  }

  .verify-hero p {
    font-size: 14px;
  }

  .verify-content {
    align-items: flex-start;
    padding: 22px 16px 32px;
  }
}

@media (max-width: 460px) {
  .verify-card {
    border-radius: 14px;
    padding: 22px 16px;
  }

  .verify-card-head {
    align-items: flex-start;
  }

  .verify-code-preview {
    gap: 6px;
  }

  .verify-code-preview span {
    height: 50px;
    border-radius: 10px;
    font-size: 22px;
  }

  .verify-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .verify-actions button,
  .verify-actions a {
    width: 100%;
    text-align: center;
  }
}

/* ── Espace partenaire (login deux colonnes) ───────────────────── */
.auth-page--partner {
  margin: 0;
  min-height: 100vh;
  background: var(--tech-gray, #f4f7f6);
  color: var(--auth-text);
}

.partner-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 100vh;
}

.partner-aside {
  padding: clamp(40px, 6vw, 72px) clamp(32px, 5vw, 56px);
  background: linear-gradient(165deg, #0f1d36 0%, #1a2b4c 52%, #122038 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.partner-aside__brand {
  display: inline-flex;
  margin-bottom: 28px;
}

.partner-aside__brand img {
  height: 40px;
  width: auto;
}

.partner-aside__eyebrow {
  margin: 0 0 12px;
  color: var(--z-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.partner-aside__title {
  margin: 0 0 22px;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.partner-aside__title span {
  color: var(--z-green);
}

.partner-aside__list {
  margin: 0 0 28px;
  padding: 0 0 0 1.1rem;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .9);
}

.partner-aside__list li {
  margin-bottom: 10px;
}

.partner-aside__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .72);
}

.partner-aside__note a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.partner-form-column {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
}

.auth-card--partner {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid #e4e9ef;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(26, 43, 76, .1);
  padding: 44px clamp(26px, 5vw, 48px);
}

.auth-card--partner .auth-card__title {
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-weight: 800;
}

@media (max-width: 960px) {
  .partner-shell {
    grid-template-columns: 1fr;
  }

  .partner-aside {
    min-height: auto;
    padding: 40px 24px 36px;
  }

  .partner-form-column {
    padding: 28px 20px 40px;
  }
}

/* ── Login Hero (full-bleed photo + centered card) ─────────────── */
.auth-page--hero {
  margin: 0;
  min-height: 100vh;
  background: #0b1426;
  color: var(--auth-text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

.auth-hero-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  isolation: isolate;
}

.auth-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/img/webp/image_login.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  filter: saturate(0.95);
}

.auth-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 20, 38, .55) 0%, rgba(11, 20, 38, .65) 60%, rgba(11, 20, 38, .8) 100%);
  z-index: -1;
}

.auth-hero-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35), 0 8px 18px rgba(0, 0, 0, .18);
  padding: 38px clamp(28px, 5vw, 48px) 30px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-hero-card__back {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--navy-pro);
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
  z-index: 1;
}

.auth-hero-card__back:hover {
  color: var(--z-green);
  transform: translateX(-2px);
}

.auth-hero-card__back:focus-visible {
  outline: 2px solid var(--z-green);
  outline-offset: 3px;
  border-radius: 4px;
}

.auth-hero-card__back svg {
  display: block;
  width: 20px;
  height: 20px;
}

.auth-hero-card__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.auth-hero-card__brand img {
  height: 36px;
  width: auto;
  transform: scale(3);
}

.auth-hero-card__head {
  text-align: center;
  margin-bottom: 26px;
}

.auth-hero-card__title {
  margin: 10px 0 8px;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy-pro);
  letter-spacing: -0.01em;
}

.auth-hero-card__lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--auth-muted);
}

.auth-page--hero .auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-page--hero .auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth-page--hero .auth-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.auth-page--hero .auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.auth-page--hero .auth-label-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--z-green);
  text-decoration: none;
  transition: color .15s ease;
}

.auth-page--hero .auth-label-link:hover {
  color: #25a85d;
  text-decoration: underline;
}

.auth-page--hero .auth-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: var(--auth-text);
  font-size: 14.5px;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-page--hero .auth-input:focus {
  outline: none;
  border-color: var(--z-green);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, .15);
}

.auth-page--hero .auth-pass-wrap {
  position: relative;
}

.auth-page--hero .auth-pass-wrap .auth-input {
  padding-right: 44px;
}

.auth-page--hero .auth-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-page--hero .auth-eye:hover {
  color: var(--navy-pro);
  background: #f3f4f6;
}

.auth-page--hero .auth-eye svg {
  width: 18px;
  height: 18px;
}

/* ── Custom checkbox rows (aligned, consistent, with shake error) ── */
.auth-checkrow {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--auth-muted);
}

.auth-checkrow__label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.auth-checkrow__label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.auth-checkrow__box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.auth-checkrow__box svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .15s ease, transform .15s ease;
}

.auth-checkrow__label:hover .auth-checkrow__box {
  border-color: #94a3b8;
}

.auth-checkrow__label input[type="checkbox"]:focus-visible + .auth-checkrow__box {
  outline: 2px solid var(--z-green);
  outline-offset: 2px;
}

.auth-checkrow__label input[type="checkbox"]:checked + .auth-checkrow__box {
  background: var(--z-green);
  border-color: var(--z-green);
}

.auth-checkrow__label input[type="checkbox"]:checked + .auth-checkrow__box svg {
  opacity: 1;
  transform: scale(1);
}

.auth-checkrow__text { flex: 1; min-width: 0; }

.auth-checkrow__text a {
  color: var(--navy-pro);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-checkrow__text a:hover { color: var(--z-green); }

.auth-checkrow__msg {
  margin: 6px 0 0 28px;
  font-size: 12px;
  font-weight: 600;
  color: var(--auth-danger);
  display: none;
  line-height: 1.45;
}

.auth-checkrow__msg:not(:empty),
.auth-checkrow.is-invalid .auth-checkrow__msg,
.auth-checkrow[data-terms-error="1"] .auth-checkrow__msg {
  display: block;
}

.auth-checkrow[data-terms-error="1"] .auth-checkrow__msg {
  color: var(--auth-danger);
}

.auth-alert {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(220, 38, 38, .35);
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.auth-page--hero .auth-alert {
  margin-bottom: 16px;
}

.auth-checkrow.is-invalid .auth-checkrow__box {
  border-color: var(--auth-danger);
  background: rgba(220, 38, 38, .08);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .15);
  animation: authCheckrowShake .45s cubic-bezier(.36, .07, .19, .97) both;
}

.auth-checkrow.is-invalid .auth-checkrow__text {
  color: var(--auth-danger);
}

@keyframes authCheckrowShake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .auth-checkrow.is-invalid .auth-checkrow__box { animation: none; }
}

.auth-submit--hero {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--z-green);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
  box-shadow: 0 6px 16px rgba(46, 204, 113, .28);
}

.auth-submit--hero:hover {
  background: #25a85d;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(46, 204, 113, .38);
}

.auth-submit--hero:active {
  transform: translateY(0);
}

.auth-submit--hero:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-hero-card__signup {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--auth-muted);
}

.auth-hero-card__signup a {
  color: var(--navy-pro);
  font-weight: 700;
  text-decoration: none;
}

.auth-hero-card__signup a:hover {
  color: var(--z-green);
  text-decoration: underline;
}

.auth-page--hero .auth-error-box,
.auth-page--hero .auth-success-box,
.auth-page--hero .auth-info-box {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.45;
  text-align: left;
}

.auth-page--hero .auth-error-box { color: var(--auth-danger); }
.auth-page--hero .auth-success-box { color: var(--auth-success); }
.auth-page--hero .auth-info-box { color: var(--auth-muted); }

.auth-page--hero .auth-resend-form {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.auth-page--hero .auth-resend-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: transparent;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-muted);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.auth-page--hero .auth-resend-btn:hover:not(:disabled) {
  border-color: var(--z-green);
  color: var(--z-green);
  background: rgba(46, 204, 113, .05);
}

.auth-page--hero .auth-resend-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.auth-page--hero .auth-resend-btn strong { font-weight: 800; color: inherit; }

.auth-page--hero .auth-submit--hero[data-cooldown],
.auth-page--hero .auth-submit--hero:disabled {
  background: #e5e7eb;
  color: #6b7280;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-page--hero .auth-submit--hero[data-cooldown] strong,
.auth-page--hero .auth-submit--hero:disabled strong {
  font-weight: 800;
  color: var(--navy-pro);
}

.auth-page--hero .auth-input:disabled {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
  opacity: .9;
}

.auth-attempts-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px auto 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  color: var(--auth-muted);
  line-height: 1.4;
  text-align: center;
  width: 100%;
}

.auth-attempts-info svg { flex-shrink: 0; }

.auth-attempts-info strong { color: var(--navy-pro); font-weight: 700; }

.auth-page--hero .auth-msg {
  margin: 2px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 12.5px;
  font-weight: 500;
  min-height: 0;
  color: var(--auth-danger);
  line-height: 1.4;
}

.auth-page--hero .auth-msg:empty {
  display: none;
}

#loginForm .auth-msg.ok {
  display: none !important;
}

#loginForm .auth-input.is-valid {
  border-color: #e5e7eb;
  box-shadow: none;
}

.auth-page--hero .auth-msg.error,
.auth-page--hero .auth-msg.is-invalid {
  color: var(--auth-danger);
}

.auth-page--hero .auth-msg.ok,
.auth-page--hero .auth-msg.is-valid {
  color: var(--auth-success);
}

.auth-page--hero .auth-msg strong {
  font-weight: 700;
  color: inherit;
}

.auth-page--hero .auth-input.is-invalid {
  border-color: var(--auth-danger);
}

.auth-page--hero .auth-input.is-invalid:focus {
  border-color: var(--auth-danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.auth-page--hero .auth-input.is-valid {
  border-color: var(--z-green);
}

@media (max-width: 540px) {
  .auth-hero-card {
    padding: 28px 22px 24px;
    border-radius: 0;
  }
  .auth-hero-card__title { font-size: 20px; }
}
