:root{
  --bg1:#0f766e;
  --bg2:#0b9488;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --stroke: rgba(15, 23, 42, .10);
  --shadow: 0 28px 70px rgba(2, 44, 40, .28);
  --radius: 22px;

  /* ✨ إضافات خفيفة */
  --glass: rgba(255,255,255,.12);
  --glassStroke: rgba(255,255,255,.18);
  --glow: 0 26px 60px rgba(2,44,40,.26);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  font-family: "Tajawal", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}
a{color:inherit}

/* background like mobile */
.auth-body{
  background:
    radial-gradient(900px 420px at 15% 25%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(700px 500px at 85% 30%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
}

.auth-wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px;
}

.auth-card{
  width:min(1080px, 100%);
  background: var(--glass);
  border:1px solid var(--glassStroke);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:grid;
  grid-template-columns: 1fr 1.08fr;
  backdrop-filter: blur(10px);
  position:relative;
}

/* ✨ لمسة Glow خفيفة */
.auth-card:before{
  content:"";
  position:absolute;
  inset:-40px;
  background:
    radial-gradient(520px 240px at 28% 22%, rgba(255,255,255,.16), transparent 60%),
    radial-gradient(620px 260px at 75% 85%, rgba(16,185,129,.10), transparent 62%);
  pointer-events:none;
}

/* LEFT */
.auth-brand{
  padding:44px 40px;
  color:#eafffb;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  position:relative;
  z-index:1;
}
.brand-top{
  display:flex;
  gap:18px;
  align-items:center; /* ✅ يخلي اللوغو مع العنوان في نفس السطر بشكل متوازن */
}

/* ✅✅✅ UPGRADE LOGO AREA */
.brand-badge{
  width:86px;               /* كان 56 */
  height:86px;
  border-radius:24px;
  background: rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.22);
  display:grid;
  place-items:center;
  overflow:hidden;
  box-shadow:
    0 22px 40px rgba(2,44,40,.24),
    inset 0 1px 0 rgba(255,255,255,.18);
  flex:0 0 auto;
}

/* SVG fallback */
.brand-badge svg{
  width:44px;
  height:44px;
  color:#eafffb;
  opacity:.95;
}

/* ✅ صورة اللوغو */
.brand-logo{
  width:56px;          /* كان 34 */
  height:56px;
  object-fit:contain;
  display:block;
  background:#fff;
  border-radius:18px;
  padding:6px;
  max-width:100%;
  max-height:100%;
  box-shadow: 0 16px 28px rgba(2,44,40,.18);
}

/* احتياط إذا img بلا class */
.brand-badge img{
  width:56px;
  height:56px;
  object-fit:contain;
  display:block;
  background:#fff;
  border-radius:18px;
  padding:6px;
  max-width:100%;
  max-height:100%;
  box-shadow: 0 16px 28px rgba(2,44,40,.18);
}
/* ✅✅✅ END LOGO UPGRADE */

.brand-title{
  min-width:0;
}
.brand-title h1{
  margin:0;
  font-size:44px;           /* كان 34 */
  letter-spacing:.2px;
  line-height:1.05;
  font-weight:1000;
  text-shadow: 0 10px 26px rgba(2,44,40,.24);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand-title p{
  margin:8px 0 0;
  color:rgba(234,255,251,.88);
  font-weight:900;
  font-size:14px;
  letter-spacing:.2px;
}

.brand-chips{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:22px;
}
.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:11px 14px;
  border-radius:999px;
  background: rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  font-weight:900;
  font-size:13px;
  box-shadow: 0 14px 30px rgba(2,44,40,.10);
}
.chip-ic svg{width:16px;height:16px;color:#eafffb}

.brand-note{
  margin-top:22px;
  display:flex; gap:12px; align-items:center;
  padding:16px 16px;
  border-radius:18px;
  background: rgba(0,0,0,.10);
  border:1px solid rgba(255,255,255,.14);
}
.note-ic{
  width:44px;height:44px;border-radius:14px;
  background: rgba(255,255,255,.14);
  display:grid;place-items:center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.note-ic svg{width:20px;height:20px;color:#eafffb}
.note-title{font-weight:1000; font-size:15px}
.note-sub{color:rgba(234,255,251,.84); font-weight:800; font-size:13px}

/* RIGHT */
.auth-main{
  background: var(--card);
  padding:38px 38px 30px;
  position:relative;
  z-index:1;
}

.form-head h2{margin:0;font-size:22px}
.form-head p{margin:6px 0 18px;color:var(--muted);font-weight:700}

/* alerts */
.alert{
  margin:0 0 14px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--stroke);
  font-weight:800;
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.alert-danger{
  background:#fff5f5;
  border-color:rgba(239,68,68,.25);
  color:#991b1b;
}
.alert-ic{
  width:22px;height:22px;border-radius:7px;
  display:grid;place-items:center;
  background:rgba(239,68,68,.12);
  border:1px solid rgba(239,68,68,.22);
  font-weight:900;
  line-height:1;
}
.alert-tx{flex:1}

/* fields */
.field{display:block; margin-top:14px}
.field-label{display:block; font-weight:900; margin-bottom:8px; font-size:13px}
.input-wrap{
  display:flex; align-items:center; gap:10px;
  border:1px solid var(--stroke);
  border-radius:16px;
  padding:10px 12px;
  background:#fbfeff;
  box-shadow: 0 10px 25px rgba(2,44,40,.06);
}
.input-ic{
  width:40px;height:40px;border-radius:14px;
  background: rgba(15,118,110,.10);
  display:grid;place-items:center;
  color:#0f766e;
}
.input-ic svg{width:20px;height:20px}
.input-wrap input{
  border:none; outline:none;
  width:100%;
  font-size:14px;
  background:transparent;
}

.eye-btn{
  width:42px;height:42px;border-radius:14px;
  border:1px solid var(--stroke);
  background:#fff;
  display:grid;place-items:center;
  cursor:pointer;
}
.eye-btn svg{width:20px;height:20px;color:#0f766e}

/* row */
.row{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin-top:14px;
}
.check{display:flex; align-items:center; gap:10px; color:var(--muted); font-weight:700; font-size:13px}
.check input{width:16px;height:16px}
.link{color:#0f766e; text-decoration:none; font-weight:900; font-size:13px}
.link:hover{text-decoration:underline}

/* button */
.btn-primary{
  margin-top:18px;
  width:100%;
  border:none;
  border-radius:16px;
  padding:14px 16px;
  background: linear-gradient(135deg, #0f766e, #0b9488);
  color:#fff;
  font-weight:1000;
  letter-spacing:.2px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  cursor:pointer;
  box-shadow: 0 18px 35px rgba(2,44,40,.22);
}
.btn-primary svg{width:18px;height:18px;color:#fff}

/* footer */
.foot{
  margin-top:14px;
  display:flex; align-items:center; justify-content:center;
  gap:10px;
  color:var(--muted);
  font-weight:900;
  font-size:12px;
}
.dot{width:8px;height:8px;border-radius:99px;background:#10b981}

/* responsive */
@media (max-width: 900px){
  .auth-card{grid-template-columns:1fr}
  .auth-brand{display:none}
  .auth-main{padding:28px 18px 22px}
}
