/* صفحات عامة — مظهر احترافي */
.public-page,
.auth,
.login {
  font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
}

.public-page {
  min-height: 100vh;
  background:
    radial-gradient(1100px 480px at 100% -8%, #d7eee3 0%, transparent 55%),
    linear-gradient(180deg, #f7fbf9, #eef5f1);
  color: #15251f;
}

.public-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 4vw, 40px);
  background: #0d221c;
  color: #fff;
}

.public-top .brand {
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.public-top .brand span {
  display: inline;
  color: #49d7a3;
  font-size: 11px;
  letter-spacing: 2px;
  margin-inline-start: 6px;
  text-transform: uppercase;
}

.public-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.public-nav a {
  color: #c8d8d2;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.public-nav a:hover,
.public-nav a.active {
  background: #168b6d;
  color: #fff;
}

.public-nav a.nav-cta {
  background: #fff;
  color: #0d221c !important;
  -webkit-text-fill-color: #0d221c;
}

.public-nav a.nav-cta:hover {
  background: #49d7a3;
}

.public-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 18px 56px;
}

.legal-card {
  background: #fff;
  border: 1px solid #d5e6df;
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 18px 50px #10251e14;
}

.legal-card h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 34px);
  color: #0d221c;
  line-height: 1.25;
}

.legal-card .meta {
  color: #66736e;
  margin: 0 0 22px;
  font-size: 14px;
}

.legal-card h2 {
  margin: 28px 0 10px;
  font-size: 18px;
  color: #147057;
}

.legal-card p,
.legal-card li {
  line-height: 1.75;
  color: #24352e;
}

.legal-card a {
  color: #147057;
  font-weight: 600;
}

.pub-hero {
  margin-bottom: 22px;
}

.pub-kicker {
  margin: 0 0 8px;
  color: #168b6d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pub-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 36px);
  color: #0d221c;
  line-height: 1.2;
}

.pub-lead {
  margin: 0;
  color: #5d6d66;
  font-size: 16px;
  line-height: 1.7;
  max-width: 34em;
}

.pub-form {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.pub-form label {
  display: grid;
  gap: 7px;
  font-weight: 600;
  color: #1d322a;
  font-size: 14px;
}

.pub-form input[type="text"],
.pub-form input[type="email"],
.login input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfdad5;
  border-radius: 12px;
  font: inherit;
  background: #fbfdfc;
}

.pub-form input:focus,
.login input:focus {
  outline: 2px solid #168b6d55;
  border-color: #168b6d;
}

.check-row {
  display: flex !important;
  align-items: flex-start;
  gap: 10px !important;
  font-weight: 500 !important;
}

.check-row input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.btn-row .button,
.btn-row button,
.btn-row a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 44px;
  margin: 0;
  text-align: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  line-height: 1.25;
  box-sizing: border-box;
  text-decoration: none;
  white-space: nowrap;
}

.button.secondary,
a.button.secondary {
  background: transparent !important;
  color: #168b6d !important;
  -webkit-text-fill-color: #168b6d !important;
  border: 1.5px solid #168b6d;
}

.public-foot {
  padding: 28px 18px 40px;
  text-align: center;
  color: #6a7a73;
}

.public-foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 12px;
}

.public-foot a {
  color: #147057;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.public-foot p {
  margin: 0;
  font-size: 13px;
}

.login .legal-mini {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
}

.login .legal-mini a {
  color: #147057;
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
}

.login h1 {
  margin: 0 0 18px;
  font-size: 22px;
}

.login label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  font-weight: 600;
}

.login .btn-row .button {
  width: 100%;
}

.actions {
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .btn-row .button,
  .btn-row button,
  .btn-row a.button {
    flex: 1 1 100%;
    min-width: 0;
  }

  .public-nav {
    width: 100%;
  }
}
