﻿/* eVe – change password and forgot password pages (eve-auth.js). Same look as the sign-in page. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--surface); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
html[dir="rtl"] body { font-family: var(--font-ar); }
a { color: var(--acc-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }

.au-wrap { display: flex; min-height: 100vh; padding: 20px; gap: 20px; }
.au-hero { flex: 1 1 52%; min-width: 0; position: relative; overflow: hidden; border-radius: 24px; padding: 44px 48px; color: var(--strong);
  background-color: var(--acc-soft);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px; display: flex; flex-direction: column; gap: 22px; }
.au-hero .brand img { height: 72px; width: auto; max-width: 100%; display: block; }
[data-theme="dark"] .au-hero .brand img { background: #fff; border-radius: 14px; padding: 8px 14px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.au-hero h1 { margin: auto 0 0; font-size: 38px; line-height: 1.12; font-weight: 700; letter-spacing: -.5px; max-width: 520px; }
.au-hero h1 .hl { color: var(--acc-text); }
.au-hero p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 500px; }
.au-tips { display: flex; flex-direction: column; gap: 10px; max-width: 470px; margin-bottom: 8px; }
.au-tips div { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; color: var(--text); box-shadow: 0 10px 24px -18px rgba(17,24,39,.35); }
.au-tips svg { flex: none; color: var(--acc-text); margin-top: 1px; }
.au-tips b { display: block; color: var(--strong); }
.au-tips small { color: var(--muted); font-size: 12.5px; }
.au-lock { position: absolute; inset-inline-end: -40px; top: 90px; width: 320px; height: 320px; border-radius: 50%; background: var(--acc-tint); display: flex; align-items: center; justify-content: center; color: var(--acc-text); opacity: .9; }
.au-lock::after { content: ""; position: absolute; inset: -46px; border-radius: 50%; border: 1px dashed var(--ring-line); }

.au-side { flex: 1 1 48%; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 8px; gap: 24px; }
.au-tools { align-self: stretch; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.au-mbrand { display: none; margin-inline-end: auto; }
.au-mbrand img { height: 40px; display: block; }
[data-theme="dark"] .au-mbrand img { background: #fff; border-radius: 10px; padding: 4px 8px; }
.au-form { flex: 1; width: 100%; max-width: 430px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.au-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 13px; align-self: flex-start; }
.au-back:hover { color: var(--strong); text-decoration: none; }
.au-form h2 { margin: 0; font-size: 28px; font-weight: 700; color: var(--strong); }
.au-form .hint { margin: 6px 0 0; color: var(--muted); }
.au-form .hint b { color: var(--strong); }

.au-ro { display: flex; gap: 10px; }
.au-ro div { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; background: var(--surface-2); }
.au-ro small { display: block; color: var(--muted); font-size: 11.5px; }
.au-ro b { color: var(--strong); overflow-wrap: anywhere; }

.au-f label { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--strong); margin-bottom: 6px; }
.au-f label .req { color: var(--bad); }
.au-in { position: relative; }
.au-in input { width: 100%; margin: 0; color: var(--strong); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.au-in input.pw { padding-inline-end: 50px; }
.au-in input::placeholder { color: #8A93A3; }
.au-in input:focus { border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-tint); }
.au-f.bad .au-in input { border-color: var(--bad); box-shadow: 0 0 0 4px var(--bad-bg); }
.au-eye { position: absolute; top: 50%; inset-inline-end: 6px; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.au-eye:hover { color: var(--strong); background: var(--surface-2); }
.au-err { display: none; color: var(--bad); font-size: 12.5px; margin-top: 6px; }
.au-f.bad .au-err { display: block; }

.au-meter { display: flex; gap: 4px; margin-top: 8px; }
.au-meter i { flex: 1; height: 4px; border-radius: 9px; background: var(--border); transition: background .2s; }
.au-meter.l1 i:nth-child(-n+1) { background: var(--bad); }
.au-meter.l2 i:nth-child(-n+2) { background: #F59E0B; }
.au-meter.l3 i:nth-child(-n+3) { background: #F59E0B; }
.au-meter.l4 i { background: var(--ok); }
.au-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin-top: 8px; font-size: 12.5px; }
.au-rules span { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.au-rules span i { width: 15px; height: 15px; flex: none; border-radius: 50%; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 9px; font-weight: 800; }
.au-rules span.ok { color: var(--ok); }
.au-match { font-size: 12.5px; margin-top: 6px; display: none; align-items: center; gap: 6px; }
.au-match.ok { display: flex; color: var(--ok); } .au-match.no { display: flex; color: var(--bad); }

.au-btn { border: 0; background: var(--acc); color: #fff; border-radius: var(--radius); padding: 14px; font-weight: 600; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s; width: 100%; }
.au-btn:hover { background: var(--acc-hover); }
.au-btn:disabled { opacity: .6; cursor: not-allowed; }
.au-btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.au-btn .sp { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: au-spin .8s linear infinite; display: none; }
.au-btn.busy .sp { display: inline-block; }
@keyframes au-spin { to { transform: rotate(360deg); } }
.au-links { display: flex; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); }

.au-note { border-radius: 12px; padding: 11px 13px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.au-note[hidden] { display: none; }
.au-note svg { flex: none; margin-top: 1px; }
.au-note.bad { background: var(--bad-bg); color: var(--bad); }
.au-note.ok { background: var(--ok-bg); color: var(--ok); }
.au-note.info { background: var(--info-bg); color: var(--info); }

.au-steps { display: flex; gap: 8px; }
.au-steps div { flex: 1; }
.au-steps i { display: block; height: 4px; border-radius: 9px; background: var(--border); transition: background .25s; }
.au-steps small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.au-steps div.on i { background: var(--acc); }
.au-steps div.on small { color: var(--strong); }
.au-step[hidden] { display: none; }
.au-step { display: flex; flex-direction: column; gap: 16px; }

.au-otp { display: flex; gap: 8px; direction: ltr; }
.au-otp input { width: 100%; min-width: 0; height: 56px; text-align: center; font-size: 24px; font-weight: 700; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--strong); outline: none; }
.au-otp input:focus { border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-tint); }
.au-otp.bad input { border-color: var(--bad); }
.au-resend { font-size: 13px; color: var(--muted); }
.au-resend button { border: 0; background: none; padding: 0; color: var(--acc-text); font-weight: 700; cursor: pointer; }
.au-resend button:disabled { color: var(--muted); cursor: default; }

.au-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.au-done .big { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: inline-flex; align-items: center; justify-content: center; }
.au-foot { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }

@media (max-width: 960px) {
  .au-wrap { padding: 0; }
  .au-hero { display: none; }
  .au-mbrand { display: block; }
  .au-side { padding: 16px; }
  .au-rules { grid-template-columns: 1fr; }
}
