/* Swift sign-up / sign-in pages — same palette as redshark-ai.com */
:root {
  --navy: #1f2430; --navy-2: #161a23; --navy-3: #2a3140;
  --teal: #2bb3c1; --teal-d: #188896; --teal-soft: #e3f5f7;
  --red: #d03b3b; --orange: #e07a3c;
  --ink: #1f2430; --muted: #4b5262; --muted-dark: #c5ccd7; --line: #e6e2db;
  --font: 'Plus Jakarta Sans', 'Cairo', system-ui, sans-serif;
}
html[lang="ar"] { --font: 'Cairo', 'Plus Jakarta Sans', system-ui, sans-serif; }
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); color: #fff; line-height: 1.55;
  background: radial-gradient(1000px 560px at 50% -10%, #2d3549 0%, var(--navy) 45%, var(--navy-2) 100%);
  display: flex; flex-direction: column; align-items: center; padding: 20px 16px 40px; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.flip { display: inline-block; }
[dir="rtl"] .flip { transform: scaleX(-1); }

.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .3; animation: drift 18s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { background: var(--teal); top: -180px; left: -140px; }
.aurora span:nth-child(2) { background: var(--red); bottom: -220px; right: -160px; animation-delay: -7s; opacity: .22; }
@keyframes drift { to { transform: translate(60px, 50px) scale(1.1); } }

.top { width: 100%; max-width: 520px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.top a.home { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: 'Montserrat', sans-serif; font-weight: 800; letter-spacing: .16em; font-size: 14px; }
.top a.home svg { width: 40px; height: auto; color: var(--red); }
.lang { height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font-weight: 800; }
.lang:hover { background: rgba(255,255,255,.14); }

.card { width: 100%; max-width: 520px; background: #fff; color: var(--ink); border-radius: 28px; padding: 32px 28px 26px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.brand { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 22px; }
.brand .icon { width: 68px; height: 68px; filter: drop-shadow(0 10px 18px rgba(24,136,150,.35)); }
.brand .word { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 28px; letter-spacing: .1em; color: var(--navy); margin-top: 10px; line-height: 1; }
.powered { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 5px 12px 5px 8px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-d); font-size: 12.5px; font-weight: 800; direction: ltr; }
.powered svg { width: 30px; height: auto; color: var(--red); }

.steps { display: flex; gap: 6px; margin-bottom: 22px; }
.steps i { flex: 1; height: 5px; border-radius: 999px; background: var(--line); transition: background .3s; }
.steps i.on { background: var(--teal); }

h1 { font-size: 24px; font-weight: 800; margin: 0; color: var(--navy); line-height: 1.25; }
.lead { margin: 6px 0 20px; color: var(--muted); font-size: 15.5px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.input { position: relative; }
.input svg { position: absolute; top: 50%; inset-inline-start: 14px; transform: translateY(-50%); width: 20px; height: 20px; color: #8a909c; pointer-events: none; }
.input input { width: 100%; height: 54px; border-radius: 14px; border: 2px solid var(--line); padding: 0 16px; padding-inline-start: 46px; font: inherit; font-size: 16px; color: var(--ink); background: #fbfaf8; transition: border-color .2s, background .2s; }
.input input:focus { outline: none; border-color: var(--teal); background: #fff; }
/* Numbers, usernames and passwords read left to right in both languages */
.input:has(input.ltr) { direction: ltr; }
.input input.ltr { direction: ltr; text-align: left; }

.hint { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--teal-soft); color: #0f5d66; font-size: 14.5px; line-height: 1.5; margin: 0 0 18px; border: 1px solid rgba(24,136,150,.25); }
.note svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--teal-d); }
.note b { color: var(--navy); }
.note a { color: var(--teal-d); font-weight: 800; }

.note.warn { background: #fff6e8; color: #7a4a10; border-color: rgba(224,122,60,.35); margin: 4px 0 16px; }
.note.warn svg { color: var(--orange); }
.note.warn b { color: #7a3a10; }

/* Save-your-login step */
.saved-ok { width: 56px; height: 56px; border-radius: 50%; background: #e6f6ee; color: #1b8a52; display: grid; place-items: center; margin-bottom: 12px; }
.saved-ok svg { width: 30px; height: 30px; }
.login-card { border: 2px dashed var(--teal); background: #f7fcfc; border-radius: 18px; padding: 6px 18px; margin-bottom: 12px; }
.login-card .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; }
.login-card .row + .row { border-top: 1px solid var(--line); }
.login-card .row span { color: var(--muted); font-weight: 700; font-size: 14.5px; }
.login-card .row b { font-size: 18px; color: var(--navy); }
.login-card .row b.code { font-size: 32px; letter-spacing: .12em; font-family: 'Plus Jakarta Sans', sans-serif; color: var(--teal-d); }
#stepSaved .btn-line { margin-bottom: 14px; }

.otp { display: flex; gap: 8px; justify-content: center; direction: ltr; margin: 4px 0 18px; }
.otp input { width: 52px; height: 62px; border-radius: 14px; border: 2px solid var(--line); text-align: center; font-size: 26px; font-weight: 800; color: var(--navy); background: #fbfaf8; font-family: 'Plus Jakarta Sans', sans-serif; }
.otp input:focus { outline: none; border-color: var(--teal); background: #fff; }

.btn { width: 100%; min-height: 56px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 17px; transition: background .2s, transform .2s, box-shadow .2s; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; }
.btn-teal { background: var(--teal-d); color: #fff; box-shadow: 0 14px 28px -12px rgba(24,136,150,.9); }
.btn-teal:hover { background: #127783; }
.btn-teal:disabled { opacity: .6; cursor: wait; }
.btn-line { background: transparent; border: 2px solid var(--line); color: var(--ink); min-height: 50px; font-size: 15.5px; }
.btn-line:hover { border-color: var(--navy); }
.btn + .btn { margin-top: 10px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; animation: sp 0.8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

.msg { display: none; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; margin-bottom: 14px; }
.msg.err { display: block; background: #fdecec; color: #a12a2a; }
.msg.ok { display: block; background: #e6f6ee; color: #1b6d43; }
.links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: 14.5px; }
.links button, .links a { background: none; border: 0; padding: 0; color: var(--teal-d); font-weight: 700; text-decoration: none; }
.links button:hover, .links a:hover { text-decoration: underline; }
.links button:disabled { color: #9aa0aa; cursor: default; text-decoration: none; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: #8a909c; font-size: 13px; font-weight: 700; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.stores { display: grid; gap: 10px; margin-bottom: 8px; }
.store { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 16px; background: #fff; text-align: start; width: 100%; }
.store:hover { border-color: var(--teal); background: var(--teal-soft); }
.store b { display: block; font-size: 16px; }
.store span { display: block; font-size: 13.5px; color: var(--muted); }

.check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; cursor: pointer; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--teal-d); flex: none; cursor: pointer; }
.check small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; margin-top: 2px; }
.saved-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #e6f6ee; color: #1b6d43; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.saved-bar button { background: none; border: 0; padding: 0; color: #1b6d43; font-weight: 800; text-decoration: underline; }

.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: #f1efea; margin-bottom: 18px; }
.tabs button { flex: 1; height: 44px; border: 0; border-radius: 999px; background: transparent; font-weight: 800; font-size: 14.5px; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.old-link { display: block; width: 100%; margin-top: 16px; padding: 12px; border: 2px dashed var(--line); border-radius: 14px; background: none; color: var(--muted); font-weight: 700; font-size: 14.5px; }
.old-link:hover { border-color: var(--navy); color: var(--navy); }

/* WhatsApp help */
.btn-wa { background: #25d366; color: #fff; min-height: 50px; font-size: 15.5px; margin-top: 14px; box-shadow: 0 12px 24px -12px rgba(37,211,102,.9); }
.btn-wa:hover { background: #1fb457; }
.wa-float { position: fixed; z-index: 40; bottom: 20px; inset-inline-end: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 24px -8px rgba(0,0,0,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.4s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

.foot { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; color: var(--muted-dark); font-size: 14px; }
.foot a { color: #fff; font-weight: 700; text-decoration: none; }
.foot a:hover { text-decoration: underline; }

[hidden] { display: none !important; }
@media (max-width: 420px) {
  .card { padding: 26px 18px 22px; border-radius: 24px; }
  .otp input { width: 44px; height: 56px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
