/* =========================================================
   كاتينة — صفحات تسجيل الدخول / التسجيل + بوابة الهاتف
   ========================================================= */

.kt-auth-page .wd-page-title,
.kt-auth-page .title-size-default,
.kt-auth-page .breadcrumbs,
.kt-auth-page .yoast-breadcrumb {
  display: none !important;
}

.kt-auth-page-wrap {
  padding: 36px 0 56px;
  min-height: 70vh;
  background:
    radial-gradient(900px 320px at 90% 0%, rgba(31, 120, 214, 0.12), transparent 55%),
    radial-gradient(700px 280px at 0% 100%, rgba(255, 122, 26, 0.1), transparent 50%),
    linear-gradient(180deg, #f7fafc 0%, #eef3f8 100%);
  font-family: var(--kt-font, "Tajawal", "Segoe UI", Tahoma, sans-serif);
}

.kt-auth {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(7, 16, 24, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.kt-auth__panel {
  padding: 36px 40px 40px;
}

.kt-auth__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 22px;
}

.kt-auth__logo {
  display: inline-flex;
  background: linear-gradient(180deg, #ffffff 0%, #fff7ea 100%);
  border: 1px solid rgba(252, 195, 118, 0.65);
  border-radius: 16px;
  padding: 6px 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.kt-auth__logo img {
  max-height: 52px;
  width: auto;
  display: block;
}

.kt-auth__tagline {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.kt-auth__card {
  max-width: 440px;
}

.kt-auth__title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.kt-auth__subtitle {
  margin: 0 0 22px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.7;
}

.kt-auth-form {
  display: grid;
  gap: 14px;
}

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

.kt-auth-field {
  display: grid;
  gap: 6px;
  margin: 0;
}

.kt-auth-field > span {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.kt-auth-field > span em {
  color: #ea580c;
  font-style: normal;
}

.kt-auth-field small {
  color: #94a3b8;
  font-size: 12px;
}

.kt-auth-field input,
.kt-auth-field select {
  width: 100%;
  height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kt-auth-field input:focus,
.kt-auth-field select:focus {
  outline: none;
  border-color: #1f78d6;
  box-shadow: 0 0 0 4px rgba(31, 120, 214, 0.15);
}

.kt-auth-phone {
  display: flex;
  align-items: stretch;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.kt-auth-phone:focus-within {
  border-color: #1f78d6;
  box-shadow: 0 0 0 4px rgba(31, 120, 214, 0.15);
}

.kt-auth-phone__cc {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: linear-gradient(180deg, #0b1a2e, #12243c);
  color: #fcc376;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.kt-auth-phone input {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  height: 48px;
}

.kt-auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #475569;
  margin: 2px 0;
}

.kt-auth-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  height: 50px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  color: #1a1208 !important;
  background: linear-gradient(135deg, #ff7a1a, #fcc376) !important;
  box-shadow: 0 10px 24px rgba(255, 122, 26, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kt-auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(255, 122, 26, 0.34);
}

.kt-auth-lost {
  margin: 4px 0 0;
  text-align: center;
  font-size: 13px;
}

.kt-auth-lost a,
.kt-auth__switch a {
  color: #1d4ed8 !important;
  font-weight: 700;
  text-decoration: none;
}

.kt-auth__switch {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

.kt-auth-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 14px;
}

.kt-auth-errors ul {
  margin: 0;
  padding: 0 18px 0 0;
  list-style: disc;
}

.kt-auth-notice {
  max-width: 520px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.kt-auth__aside {
  position: relative;
  background:
    radial-gradient(500px 240px at 20% 10%, rgba(255, 122, 26, 0.28), transparent 60%),
    radial-gradient(420px 260px at 90% 90%, rgba(58, 160, 255, 0.28), transparent 55%),
    linear-gradient(160deg, #071018 0%, #0c1a2c 55%, #12243c 100%);
  color: #f8fafc;
  padding: 48px 36px;
  display: flex;
  align-items: center;
}

.kt-auth__aside-inner {
  position: relative;
  z-index: 1;
}

.kt-auth__badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(252, 195, 118, 0.16);
  border: 1px solid rgba(252, 195, 118, 0.4);
  color: #fcc376;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 16px;
}

.kt-auth__aside h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 800;
  color: #fff !important;
  line-height: 1.35;
}

.kt-auth__aside p {
  margin: 0 0 18px;
  color: #dbe7f5;
  line-height: 1.8;
  font-size: 15px;
}

.kt-auth__aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.kt-auth__aside li {
  position: relative;
  padding-inline-start: 18px;
  color: #f1f5f9;
  font-weight: 600;
  font-size: 14px;
}

.kt-auth__aside li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a1a, #fcc376);
}

/* Force phone gate — نافذة منبثقة واضحة للجميع */
.kt-phone-gate {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: var(--kt-font, "Tajawal", "Segoe UI", Tahoma, sans-serif);
  pointer-events: auto;
}

.kt-phone-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 16, 24, 0.78);
  backdrop-filter: blur(8px);
}

.kt-phone-gate__card {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  background: #fff;
  border-radius: 22px;
  padding: 28px 24px 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(252, 195, 118, 0.35);
  pointer-events: auto;
}

.kt-phone-gate__brand {
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #071018, #0c1a2c);
}

.kt-phone-gate__brand img {
  max-width: 160px;
  height: auto;
  display: block;
}

.kt-phone-gate__badge {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.12);
  border: 1px solid rgba(255, 122, 26, 0.4);
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
}

.kt-phone-gate__card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #0f172a;
  font-weight: 800;
}

.kt-phone-gate__card > p {
  margin: 0 0 16px;
  color: #64748b;
  line-height: 1.7;
  font-size: 14px;
}

.kt-phone-gate__error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600;
}

.kt-phone-gate__label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.kt-phone-gate__form .kt-auth-phone {
  margin-bottom: 14px;
}

.kt-phone-gate__submit {
  width: 100%;
  margin-top: 4px;
}

.kt-phone-gate__logout {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
}

.kt-phone-gate__logout a {
  color: #64748b !important;
  text-decoration: underline;
}

body.kt-needs-phone {
  overflow: hidden !important;
}

body.kt-needs-phone #wpadminbar,
body.kt-needs-phone .kt-topbar,
body.kt-needs-phone .whb-header,
body.kt-needs-phone .wd-page-wrapper,
body.kt-needs-phone .wd-page-content,
body.kt-needs-phone .kt-footer,
body.kt-needs-phone .kt-float,
body.kt-needs-phone .wd-toolbar {
  pointer-events: none !important;
  user-select: none !important;
}

body.kt-needs-phone .kt-phone-gate,
body.kt-needs-phone .kt-phone-gate * {
  pointer-events: auto !important;
  user-select: auto !important;
}

/* Responsive auth */
@media (max-width: 900px) {
  .kt-auth {
    grid-template-columns: 1fr;
  }
  .kt-auth__aside {
    order: -1;
    padding: 28px 24px;
    min-height: 0;
  }
  .kt-auth__aside h2 {
    font-size: 22px;
  }
  .kt-auth__aside ul {
    display: none;
  }
  .kt-auth__panel {
    padding: 28px 22px 32px;
  }
  .kt-auth__title {
    font-size: 24px;
  }
}

@media (max-width: 560px) {
  .kt-auth-page-wrap {
    padding: 24px 12px 36px;
  }
  .kt-auth {
    border-radius: 18px;
  }
  .kt-auth__brand {
    margin-top: 4px;
    margin-bottom: 18px;
  }
  .kt-auth-grid {
    grid-template-columns: 1fr;
  }
  .kt-auth__logo img {
    max-height: 44px;
  }
}
