/* login.css */
:root {
  --bg: #eef3ff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;

  /* Zewail blue vibe */
  --primary: #1f63ff;
  --primary-2: #1748d6;
  --ring: rgba(31, 99, 255, 0.22);

  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    "Cairo",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--text);
  background: radial-gradient(
    1200px 650px at 25% 10%,
    #d7e5ff 0%,
    var(--bg) 45%,
    #f6f8ff 100%
  );
}

.auth {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: min(1200px, 100%);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* HERO */
.hero {
  position: relative;
  min-height: 640px;
  background-image: url("assets/hero.jpg"); /* replace */
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(31, 99, 255, 0.92) 0%,
    rgba(31, 99, 255, 0.72) 55%,
    rgba(31, 99, 255, 0.58) 100%
  );
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 30px 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  padding: 8px;
  object-fit: contain;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

.brand-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-tagline {
  margin: 2px 0 0;
  font-size: 12.5px;
  opacity: 0.92;
  font-weight: 700;
}

.hero-block {
  margin-top: 12px;
}

.hero-list {
  margin: 10px 0 0;
  padding: 0 18px 0 0;
  line-height: 1.9;
  font-size: 13px;
  opacity: 0.95;
}

.hero-h {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  opacity: 0.98;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.hero-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.9;
  opacity: 0.92;
  max-width: 70ch;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini {
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.mini-h {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
}

.mini-list {
  margin: 0;
  padding: 0 18px 0 0;
  line-height: 1.8;
  font-size: 12.5px;
  opacity: 0.94;
}

.hero-badge {
  width: fit-content;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 800;
  font-size: 12px;
}

/* Founders */
.founders {
  display: grid;
  gap: 10px;
}

.founder {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.founder-img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.founder-name {
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 2px;
}

.founder-role {
  font-weight: 700;
  font-size: 12px;
  opacity: 0.92;
  margin-bottom: 4px;
}

.founder-desc {
  font-size: 11.5px;
  line-height: 1.75;
  opacity: 0.88;
}

/* Logos row */
.logos {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.logos img {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 8px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.15);
}

/* PANEL */
.panel {
  position: relative;
  padding: 42px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(
      560px 220px at 25% 25%,
      rgba(31, 99, 255, 0.1),
      transparent 60%
    ),
    radial-gradient(
      520px 200px at 75% 45%,
      rgba(31, 99, 255, 0.08),
      transparent 60%
    ),
    #fff;
}

.panel-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 900;
}

.panel-subtitle {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: #334155;
  margin-bottom: 8px;
  font-weight: 800;
}

.req {
  color: #ef4444;
}

.field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: #f3f7ff;
  outline: none;
  font-size: 14px;
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.field input:focus {
  background: #edf3ff;
  border-color: rgba(31, 99, 255, 0.65);
  box-shadow: 0 0 0 6px var(--ring);
}

.extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.remember {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.remember input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.hint {
  margin: 6px 0 6px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.7;
}

.btn {
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.6px;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(31, 99, 255, 0.28);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    filter 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(31, 99, 255, 0.32);
  filter: brightness(1.02);
}

.btn:active {
  transform: translateY(0px);
}

.support {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.muted {
  color: var(--muted);
}

.link {
  color: var(--primary-2);
  text-decoration: none;
  font-weight: 900;
}
.link:hover {
  text-decoration: underline;
}

/* Optional right decoration image */
.right-img {
  position: absolute;
  left: 18px; /* left because RTL panel content is on right */
  bottom: 18px;
  width: 140px;
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
}

/* Responsive */
@media (max-width: 1020px) {
  .auth-card {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 520px;
  }
  .panel {
    padding: 28px 22px;
  }
  .hero-inner {
    padding: 22px 18px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .right-img {
    display: none;
  }
}

@media (max-width: 420px) {
  .panel-title {
    font-size: 22px;
  }
  .brand-title {
    font-size: 22px;
  }
  .brand-logo {
    width: 50px;
    height: 50px;
  }
}

/* ===== Zewail Auto Slider (Right Panel) ===== */
.zw-slider {
  margin-bottom: 18px;
}

.zw-slides {
  position: relative;
  width: 100%;
  height: 170px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #eef3ff;
}

.zw-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 0.6s ease,
    transform 0.9s ease;
}

.zw-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.zw-dots {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.zw-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(31, 99, 255, 0.28);
  transition:
    width 0.2s ease,
    background 0.2s ease;
}

.zw-dot.is-active {
  width: 22px;
  background: rgba(31, 99, 255, 0.85);
}

@media (max-width: 420px) {
  .zw-slides {
    height: 150px;
  }
}
/* Panel layout */
.panel {
  display: flex;
  flex-direction: column;
}

/* Top bar for logo */
.panel-top {
  display: flex;
  justify-content: flex-end; /* left */
  align-items: center;
  padding: 12px 0 8px;
}

/* Logo itself */
.panel-logo img {
  height: 62px; /* كبر براحتك */
  width: auto;
  object-fit: contain;
}

/* Space under logo */
.zw-slider {
  margin-top: 10px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .panel-top {
    justify-content: center; /* مركز اللوجو في الموبايل */
  }

  .panel-logo img {
    height: 58px;
  }
}
.panel {
  position: relative;
  padding: 42px 44px;
  display: flex;
  flex-direction: column;

  /* بدل center */
  justify-content: flex-start;

  background:
    radial-gradient(
      560px 220px at 25% 25%,
      rgba(31, 99, 255, 0.1),
      transparent 60%
    ),
    radial-gradient(
      520px 200px at 75% 45%,
      rgba(31, 99, 255, 0.08),
      transparent 60%
    ),
    #fff;
  .panel-top {
    padding: 0 0 18px;
  }
}
@media (max-width: 1020px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  /* ✅ خلي الـ panel (الفورم) ييجي الأول */
  .panel {
    order: 1;
  }

  /* ✅ والـ hero ييجي بعده */
  .hero {
    order: 2;
    min-height: 520px;
  }
}
