

:root{
  --brand:#0b6575;
  --brand2:#0a5563;
  --ink:#0f172a;
  --muted:#64748b;
  --stroke:rgba(15,23,42,.10);
  --bg:#f6f8fb;
  --card:#ffffff;
  --r:18px;
  --shadow:0 18px 55px rgba(2,8,23,.12);
}

html,body{height:100%}

body{
  margin:0;
  background:
    radial-gradient(800px 480px at 15% 12%, rgba(11,101,117,.16), transparent 60%),
    radial-gradient(800px 520px at 90% 18%, rgba(14,165,233,.10), transparent 62%),
    linear-gradient(180deg, #f8fafc, #eef2f7);
  color:var(--ink);
}

html.ltr body{
  font-family:"Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
}

html.rtl body{
  font-family:"Droid Arabic Kufi", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
}


/* layout */
.page{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.panel{
  width:min(520px, 100%);
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.92);
  border-radius:24px;
  box-shadow:var(--shadow);
  overflow:hidden;
  backdrop-filter: blur(10px);
}

/* header */
.hdr{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid var(--stroke);
  background:rgba(255,255,255,.92);
}

.brand{display:flex;align-items:center;gap:12px;min-width:0}

.logo{
  width:46px;height:46px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:#fff;
  display:grid;place-items:center;
  overflow:hidden;
}
.logo img{width:100%;height:100%;object-fit:cover}

.btxt .t1{
  font-weight:900;
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.btxt .t2{
  margin-top:4px;
  color:var(--muted);
  font-weight:600;
  font-size:12px;
}

/* languages */
.langs{display:flex;gap:8px;flex-wrap:wrap}
.langPill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:38px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:#fff;
  text-decoration:none;
  color:var(--ink);
  font-weight:800;
  font-size:12px;
  transition:.15s;
}
.langPill:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(2,8,23,.08);
}
.langPill.active{
  border-color:rgba(11,101,117,.35);
  box-shadow:0 10px 22px rgba(11,101,117,.12);
}
.flag{
  width:20px;height:20px;
  border-radius:50%;
  border:1px solid var(--stroke);
  object-fit:cover;
}

/* body */
.bd{padding:18px 16px 8px}
.title{font-weight:900;font-size:20px;margin:6px 0 4px}
.sub{color:var(--muted);font-weight:600;font-size:13px;margin-bottom:14px}

.form-label{font-weight:800;font-size:13px}
.form-control{
  border-radius:14px;
  border:1px solid rgba(15,23,42,.14);
  padding:12px;
  font-size:14px;
}
.form-control:focus{
  border-color:rgba(11,101,117,.40);
  box-shadow:0 0 0 .20rem rgba(11,101,117,.14);
}

.btnMain{
  width:100%;
  border:0;
  border-radius:14px;
  padding:12px 14px;
  font-weight:900;
  background:linear-gradient(180deg,var(--brand),var(--brand2));
  box-shadow:0 14px 30px rgba(11,101,117,.22);
}
.btnMain:active{transform:translateY(1px)}

.alert{border-radius:14px}
pre.err{white-space:pre-wrap;margin:0;font-weight:700;font-size:13px}

/* footer */
.ftr{
  padding:12px 16px 14px;
  border-top:1px solid var(--stroke);
  text-align:center;
  color:var(--muted);
  font-weight:600;
  font-size:12px;
  background:rgba(255,255,255,.92);
}

/* RTL tweaks */
html[dir="rtl"] .title,
html[dir="rtl"] .form-label,
html[dir="rtl"] .langPill{
  font-weight:700;
}




/* mobile */
@media (max-width:420px){
  .hdr{padding:12px}
  .bd{padding:16px 12px 6px}
  .ftr{padding:10px 12px 12px}
  .langPill{height:36px;padding:0 9px}
}


