/* صفحات الدخول والتفعيل: ألوان الهوية نفسها في portal.css */
:root {
  --primary: #055934;
  --vibrant: #208D44;
  --navy-dark: #062228;
  --navy: #0A353E;
  --mint-soft: #A7E0C5;
  --gold-light: #D4D3C2;
  --bg: #F7FAF8;
  --surface: #FFFFFF;
  --border: #C2CCC6;
  --text: #1D2921;
  --muted: #5C6660;
  --danger: #C0392B;
  --danger-bg: #FDEDEC;
  --warning: #8A5A00;
  --warning-bg: #FEF9E7;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Alexandria", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
}

/* الهوية */
.identity {
  background: var(--navy-dark);
  color: #FFFFFF;
  padding: 56px 56px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.identity::after {
  content: "";
  position: absolute;
  left: -140px;
  bottom: -140px;
  width: 380px;
  height: 380px;
  border: 52px solid rgba(32, 141, 68, 0.16);
  border-radius: 50%;
  pointer-events: none;
}
.uni { font-size: 13px; color: var(--gold-light); }
.uni strong { display: block; font-size: 22px; font-weight: 700; color: #FFFFFF; margin-top: 6px; }
.platform h1 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 14px;
  text-wrap: balance;
}
.platform p { max-width: 46ch; color: var(--mint-soft); font-size: 15px; line-height: 1.9; margin: 0; }
.facts { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; font-size: 13.5px; color: #E2EFE8; }
.facts span { display: flex; gap: 10px; align-items: baseline; }
.facts span::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--vibrant);
}
.foot { font-size: 11.5px; color: var(--gold-light); position: relative; z-index: 1; }

/* النموذج */
.form-side { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.card { width: 100%; max-width: 380px; }
.card h2 { font-size: 22px; font-weight: 700; margin: 0 0 6px; color: var(--navy); }
.card .sub { font-size: 13px; color: var(--muted); margin: 0 0 28px; line-height: 1.8; }
.card .sub strong { color: var(--text); font-weight: 600; }
.field { margin-bottom: 16px; }
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
  direction: ltr;
  text-align: left;
}
input:focus { outline: none; border-color: var(--vibrant); box-shadow: 0 0 0 3px rgba(32, 141, 68, 0.15); }
button {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #FFFFFF;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
button:hover { background: var(--vibrant); }
button:disabled { opacity: 0.6; cursor: wait; }
button:focus-visible { outline: 3px solid var(--mint-soft); outline-offset: 2px; }
.alert {
  display: none;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 13px;
  line-height: 1.8;
}
.alert.show { display: block; }
.state {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 13.5px;
  line-height: 1.8;
}
.notice {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 12.5px;
  line-height: 1.8;
}
.hint { font-size: 12px; color: var(--muted); margin: -8px 0 14px; line-height: 1.7; }
.help {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.8;
}
.help a { color: var(--primary); }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .identity { padding: 32px 24px; gap: 20px; }
  .identity::after, .facts, .foot { display: none; }
}
