/* auth.css  -  Owner: Hadeel (هديل)
   The sign-in page: always dark, floating quantum particles, logo that turns, glass card. */
body.auth-page { min-height: 100%; height: auto; margin: 0; color: #eef1fb;
  background: radial-gradient(900px 600px at 85% -10%, rgba(99,102,241,.55), transparent 60%),
              radial-gradient(800px 600px at -10% 110%, rgba(13,148,136,.45), transparent 60%), #070b18; }
#sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.au { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center;
  padding: max(28px, env(safe-area-inset-top)) 18px 18px; }
.au-tools { width: min(420px, 100%); display: flex; justify-content: flex-end; }
.au-lang { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #c7d2fe; border-radius: 12px; padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.au-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 14px 0 22px; }
.au-logo { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #6366f1, #0ea5a4); box-shadow: 0 0 0 9px rgba(124,131,255,.12), 0 16px 44px rgba(99,102,241,.55); }
.au-logo svg { width: 48px; height: 48px; animation: au-spin 16s linear infinite; }
@keyframes au-spin { to { transform: rotate(360deg); } }
.au-name { font-size: 30px; font-weight: 700; letter-spacing: .3px; }
.au-card { position: relative; width: min(420px, 100%); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 26px; padding: 20px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px rgba(0,0,0,.35); animation: au-in .35s ease-out both; }
@keyframes au-in { from { opacity: 0; transform: translateY(10px); } }
.au-tabs { display: flex; background: rgba(0,0,0,.28); border-radius: 15px; padding: 4px; margin-bottom: 16px; }
.au-tabs button { flex: 1; border: 0; background: transparent; color: #8f9abb; font: inherit; font-weight: 600; font-size: 14.5px; padding: 10px; border-radius: 11px; cursor: pointer; transition: .2s; }
.au-tabs button.on { background: rgba(255,255,255,.11); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.g-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: 15px; background: #fff; color: #1f2937; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s; }
.g-btn:active { transform: scale(.98); }
.g-ico { width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.5H42V20H24v8h11.3C33.7 32.7 29.2 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3 0 5.8 1.1 7.9 3l5.7-5.7C34 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.4-.4-3.5z'/%3E%3Cpath fill='%23FF3D00' d='m6.3 14.7 6.6 4.8C14.7 15.1 19 12 24 12c3 0 5.8 1.1 7.9 3l5.7-5.7C34 6.1 29.3 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2C29.2 35.1 26.7 36 24 36c-5.2 0-9.6-3.3-11.3-8l-6.5 5C9.5 39.6 16.2 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.5H42V20H24v8h11.3c-.8 2.2-2.2 4.2-4.1 5.6l6.2 5.2C36.9 39.2 44 34 44 24c0-1.3-.1-2.4-.4-3.5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.au-or { display: flex; align-items: center; gap: 10px; color: #8f9abb; font-size: 12.5px; margin: 14px 0; }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.12); }
.au-lbl { display: block; font-size: 12.5px; color: #9aa5c4; margin: 0 4px 6px; }
.au-field { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 15px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.12); margin-bottom: 12px; transition: .2s; }
.au-field:focus-within { border-color: #7c83ff; box-shadow: 0 0 0 3px rgba(124,131,255,.25); }
.au-field .fi { color: #6b7699; font-weight: 700; display: grid; place-items: center; min-width: 20px; }
.au-field .fi svg { width: 18px; height: 18px; }
.au-field input { flex: 1; min-width: 0; border: 0; background: transparent; color: #eef1fb; font: inherit; font-size: 15.5px; padding: 13px 2px; outline: none; text-align: left; }
.au-field input::placeholder { color: #59627f; }
.au-field .eye { border: 0; background: none; color: #6b7699; cursor: pointer; padding: 4px; display: grid; }
.au-field .eye svg { width: 19px; height: 19px; }
.au-field .eye.on { color: #c7d2fe; }
.avail { font-size: 12px; white-space: nowrap; }
.avail.ok { color: #34d399; } .avail.no { color: #fb7185; }
.au-meter { display: flex; gap: 4px; margin: -4px 4px 10px; }
.au-meter i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); transition: .25s; }
.au-meter i.f1 { background: #fb7185; } .au-meter i.f2 { background: #f59e0b; } .au-meter i.f3 { background: #a3e635; } .au-meter i.f4 { background: #34d399; }
.au-rules { list-style: none; margin: 0 4px 12px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 12.5px; color: #6b7699; }
.au-rules li::before { content: "○ "; }
.au-rules li.ok { color: #34d399; } .au-rules li.ok::before { content: "✓ "; }
.au-btn { width: 100%; margin-top: 4px; padding: 14px; border: 0; border-radius: 15px; font: inherit; font-weight: 700; font-size: 15.5px; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #6366f1, #4f46e5); box-shadow: 0 12px 26px rgba(79,70,229,.45); transition: transform .15s, opacity .15s; }
.au-btn:active { transform: scale(.98); }
.au-btn.loading { opacity: .6; pointer-events: none; }
.au-link { border: 0; background: none; color: #c7d2fe; font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; padding: 0; }
.au-link.start { display: block; margin: -4px 4px 12px auto; }
[dir="rtl"] .au-link.start { margin: -4px auto 12px 4px; }
.au-err { color: #fda4af; font-size: 13.5px; min-height: 0; margin: 0 4px 6px; }
.au-err:empty { display: none; }
.au-small { text-align: center; color: #8f9abb; font-size: 13px; margin-top: 12px; }
.au-small:empty { display: none; }
.au-back { position: absolute; top: 14px; inset-inline-start: 14px; width: 36px; height: 36px; border-radius: 12px; border: 0; background: rgba(255,255,255,.07); color: #c7d2fe; display: grid; place-items: center; cursor: pointer; }
.au-back svg { width: 20px; height: 20px; }
[dir="rtl"] .au-back svg { transform: scaleX(-1); }
.au-ico { width: 68px; height: 68px; border-radius: 22px; margin: 8px auto 12px; display: grid; place-items: center; font-size: 32px; background: rgba(124,131,255,.15); }
.au-card h2 { text-align: center; margin: 0 0 6px; font-size: 21px; }
.au-sub { text-align: center; color: #9aa5c4; font-size: 13.5px; margin: 0 0 18px; line-height: 1.7; }
.au-sub b { color: #fff; }
.au-code { display: flex; gap: 8px; justify-content: center; margin-bottom: 14px; }
.au-code input { width: 46px; height: 56px; border-radius: 14px; text-align: center; font: inherit; font-size: 24px; font-weight: 700; color: #fff;
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.14); outline: none; caret-color: #7c83ff; }
.au-code input:focus { border-color: #7c83ff; box-shadow: 0 0 0 3px rgba(124,131,255,.25); }
.au-plain { display: block; width: 100%; padding: 14px; border-radius: 15px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.14); color: #fff;
  font: inherit; font-size: 20px; letter-spacing: 3px; text-align: center; margin-bottom: 14px; outline: none; text-transform: uppercase; }
.au-dev { text-align: center; font-size: 12.5px; color: #fcd34d; background: rgba(252,211,77,.1); border-radius: 10px; padding: 6px; margin-bottom: 10px; }
.au-reset { margin-bottom: 4px; }
.au-foot { margin-top: auto; padding-top: 22px; font-size: 12px; color: #4f5877; }
@media (max-width: 480px) {
  .au-brand { margin: 6px 0 18px; gap: 10px; }
  .au-logo { width: 70px; height: 70px; border-radius: 22px; } .au-logo svg { width: 40px; height: 40px; }
  .au-name { font-size: 26px; }
  .au-card { padding: 16px; border-radius: 24px; }
  .au-code input { width: 42px; height: 52px; }
}
