:root {
  --ns-accent: #2b7de9;
  --ns-text: #0b1220;
  --ns-muted: #667085;
  --ns-border: rgba(16, 24, 40, .12);
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 10%, #d7efff 0%, #f6fbff 55%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  color: var(--ns-text);
  font-family: "Tajawal", "Cairo", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.auth-shell {
  width: 100%;
  max-width: 980px;
}

.auth-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(16, 24, 40, .10);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

@media (max-width: 900px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    display: none;
  }

  .auth-form {
    padding: 32px 22px;
  }
}

.auth-hero {
  padding: 48px;
  background: linear-gradient(135deg, #e7f4ff 0%, #cfe9ff 45%, #eaf6ff 100%);
  position: relative;
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: -120px -120px auto auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(43, 125, 233, .18);
}

.auth-hero h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0;
}

.auth-hero p {
  margin-top: 12px;
  color: #475467;
  font-size: 16px;
  line-height: 1.4;
}

.auth-form {
  padding: 48px;
  position: relative;
}

.lang-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 13px;
}

html[dir="rtl"] .lang-toggle {
  right: auto;
  left: 18px;
}

.lang-toggle a {
  text-decoration: none;
  border: 1px solid var(--ns-border);
  border-radius: 999px;
  padding: 4px 10px;
  color: #344054;
  background: #fff;
  font-weight: 700;
}

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

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--ns-border);
  object-fit: contain;
}

.brand .title {
  font-weight: 800;
  font-size: 20px;
  line-height: 1.1;
}

.brand .sub {
  color: var(--ns-muted);
  font-size: 13px;
  margin-top: 2px;
}

.form-label {
  font-weight: 600;
  color: #344054;
}

.form-control {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--ns-border);
}

.form-control:focus {
  border-color: rgba(43, 125, 233, .45);
  box-shadow: 0 0 0 .2rem rgba(43, 125, 233, .12);
}

.btn-primary {
  background: linear-gradient(180deg, #2f8cff, #1e64d8);
  border: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 800;
}

.small-links {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

html[dir="rtl"] .small-links {
  justify-content: flex-start;
}

.small-links a {
  font-size: 13px;
  text-decoration: none;
}

.footer-note {
  margin-top: 18px;
  color: #98a2b3;
  font-size: 12px;
  text-align: center;
}
