/* Kasheer login — design-only theme (Authentication/index) */

.kasheer-login-page {
  --kasheer-navy: #0c1f4a;
  --kasheer-navy-soft: #1a3270;
  --kasheer-gold: #E1B400;
  --kasheer-gold-dark: #C59D00;
  --kasheer-gold-hover: #C59D00;
  --kasheer-gold-gradient: linear-gradient(180deg, #E1B400 0%, #C59D00 100%);
  --kasheer-gold-gradient-hover: linear-gradient(180deg, #C59D00 0%, #B08A00 100%);
  --kasheer-text: #0c1f4a;
  --kasheer-muted: #6b7280;
  --kasheer-border: #e4e8f0;
  --kasheer-white: #ffffff;
  --kasheer-input-bg: #e8f0fe;
  margin: 0;
  min-height: 100vh;
  background: var(--kasheer-white);
  color: var(--kasheer-text);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.kasheer-login-page * {
  box-sizing: border-box;
}

.kasheer-login-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Left hero */
.kasheer-login-hero {
  flex: 1 1 50%;
  position: relative;
  min-height: 320px;
  background: #111 center / cover no-repeat;
  overflow: hidden;
}

.kasheer-login-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 35%, rgba(0, 0, 0, 0.72) 100%);
}

.kasheer-login-hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 48px 56px 56px;
  color: #fff;
  max-width: 640px;
}

.kasheer-login-hero__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.kasheer-login-hero__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
}

/* Right panel */
.kasheer-login-main {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 24px;
  background: var(--kasheer-white);
}

.kasheer-login-panel {
  width: min(100%, 420px);
}

.kasheer-login-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  color: var(--kasheer-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.kasheer-login-back svg {
  display: block;
  flex-shrink: 0;
}

.kasheer-login-back:hover {
  color: var(--kasheer-navy);
}

.kasheer-login-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
}

.kasheer-login-toolbar .kasheer-login-back {
  margin: 0;
}

.kasheer-login-lang {
  position: relative;
  flex-shrink: 0;
}

.kasheer-login-lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--kasheer-border);
  border-radius: 40px;
  background: #fff;
  color: var(--kasheer-navy);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.kasheer-login-lang__toggle:hover {
  border-color: var(--kasheer-navy);
}

.kasheer-login-lang__globe {
  color: var(--kasheer-navy);
  flex-shrink: 0;
}

.kasheer-login-lang__caret {
  font-size: 9px;
  line-height: 1;
  color: var(--kasheer-muted);
}

.kasheer-login-lang__menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 140px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--kasheer-border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(12, 31, 74, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 20;
}

.kasheer-login-lang.is-open .kasheer-login-lang__menu,
.kasheer-login-lang:hover .kasheer-login-lang__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.kasheer-login-lang__option {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--kasheer-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.kasheer-login-lang__option:hover {
  background: #f4f6fb;
  color: var(--kasheer-navy);
}

.kasheer-login-lang__option.is-active {
  background: var(--kasheer-navy);
  color: #fff;
}

.kasheer-login-page.arabic-lang,
.kasheer-login-page.arabic-lang .kasheer-login-hero__title,
.kasheer-login-page.arabic-lang .kasheer-login-hero__text,
.kasheer-login-page.arabic-lang .title,
.kasheer-login-page.arabic-lang .btn_login_pin_type {
  font-family: var(--kasheer-arabic-font, "Tajawal", "Cairo", "Segoe UI", system-ui, sans-serif);
}

html[dir="rtl"] .kasheer-login-hero__content {
  text-align: right;
}

[dir="rtl"] .kasheer-login-back svg,
.arabic-lang .kasheer-login-back svg {
  transform: scaleX(-1);
}

.kasheer-login-logo {
  display: block;
  width: min(100%, 220px);
  height: auto;
  margin: 0 auto 32px;
}

.kasheer-login-page .btn_login_pin_table {
  width: 100%;
  margin: 0 0 28px;
  border-collapse: separate;
  border-spacing: 0;
}

.kasheer-login-page .btn_login_pin_table td {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 1px solid var(--kasheer-border);
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.kasheer-login-page .btn_login_pin_type {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 48px;
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--kasheer-navy) !important;
  background: transparent !important;
  text-decoration: none !important;
  box-sizing: border-box;
}

.kasheer-login-page .btn_login_pin_type.active_login_btn,
.kasheer-login-page .btn_login_pin_type.active_login_btn:hover,
.kasheer-login-page .btn_login_pin_type.active_login_btn:focus {
  background: var(--kasheer-navy) !important;
  color: #fff !important;
}

.kasheer-login-page > .container,
.kasheer-login-panel > .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  position: static;
}

.kasheer-login-page .card:first-child,
.kasheer-login-page .card.alt {
  display: none !important;
}

.kasheer-login-page .card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin: 0;
}

.kasheer-login-page .card .title {
  border: 0;
  margin: 0 0 24px;
  padding: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--kasheer-navy);
  text-transform: none;
  text-align: left;
}

.kasheer-login-page .red_error,
.kasheer-login-page .green_error {
  margin: 0 0 16px;
  font-size: 14px;
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
}

.kasheer-login-page .red_error {
  background: #fef2f2;
  color: #dc2626;
}

.kasheer-login-page .green_error {
  background: #ecfdf5;
}

.kasheer-login-page .card .input-container {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--kasheer-border);
  border-radius: 10px;
  background: var(--kasheer-input-bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kasheer-login-page .card .input-container:focus-within {
  border-color: var(--kasheer-navy-soft);
  box-shadow: 0 0 0 3px rgba(12, 31, 74, 0.08);
}

.kasheer-login-page .kasheer-login-field__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.85;
}

.kasheer-login-page .card .input-container input {
  flex: 1;
  min-width: 0;
  height: 50px;
  font-size: 15px;
  font-weight: 400;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--kasheer-text);
}

.kasheer-login-page .card .input-container input:-webkit-autofill,
.kasheer-login-page .card .input-container input:-webkit-autofill:hover,
.kasheer-login-page .card .input-container input:-webkit-autofill:focus,
.kasheer-login-page .card .input-container input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--kasheer-input-bg) inset;
  box-shadow: 0 0 0 1000px var(--kasheer-input-bg) inset;
  -webkit-text-fill-color: var(--kasheer-text);
  caret-color: var(--kasheer-text);
  transition: background-color 5000s ease-in-out 0s;
}

.kasheer-login-page .card .input-container label {
  display: none;
}

.kasheer-login-page .card .input-container .bar {
  display: none;
}

.kasheer-login-page .error_txt {
  margin: 0 0 12px;
  font-size: 13px;
  text-align: left;
}

.kasheer-login-page.arabic-lang .error_txt,
[dir="rtl"] .kasheer-login-page .error_txt {
  text-align: right;
  margin-left: 0;
  margin-right: 0;
}

.kasheer-login-page .login_field_error .red_error {
  margin: 0;
  padding: 0;
  background: transparent;
  text-align: inherit;
  color: inherit;
}

.kasheer-login-page .kasheer-password-wrap {
  position: relative;
}

.kasheer-login-page .kasheer-password-toggle {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #6b7293;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
}

.kasheer-login-page .kasheer-password-toggle:hover,
.kasheer-login-page .kasheer-password-toggle:focus {
  color: var(--kasheer-navy);
  outline: none;
}

.kasheer-login-page .card .input-container input {
  flex: 1;
  min-width: 0;
  height: 50px;
  font-size: 15px;
  font-weight: 400;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--kasheer-text);
}

.kasheer-login-page .card .button-container {
  margin: 8px 0 0;
}

.kasheer-login-page .card .button-container button,
.kasheer-login-page .card .button-container .submit_login {
  width: 100%;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
  border: 0;
  border-radius: 10px;
  background: var(--kasheer-gold-gradient) !important;
  box-shadow: none;
}

.kasheer-login-page .card .button-container button span {
  color: #fff !important;
  font-weight: 700;
}

.kasheer-login-page .card .button-container button:hover,
.kasheer-login-page .card .button-container button:focus,
.kasheer-login-page .card .button-container button:active {
  background: var(--kasheer-gold-gradient-hover) !important;
  border-color: transparent !important;
}

.kasheer-login-page .card .button-container button:before {
  display: none;
}

.kasheer-login-page .card .footer {
  margin: 20px 0 0;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.kasheer-login-page .card .footer a {
  color: var(--kasheer-navy-soft);
  text-decoration: none;
}

.kasheer-login-page .card .footer a:hover {
  color: var(--kasheer-navy);
  text-decoration: underline;
}

.kasheer-login-page .div_signup_link {
  font-size: 14px;
  margin-top: 12px;
}

.kasheer-login-page .div_signup_link_a {
  color: var(--kasheer-navy-soft) !important;
}

.kasheer-login-page .text_center.div_1 {
  margin: 0 0 16px;
}

.kasheer-login-page #loginpin.pinlogin {
  justify-content: center;
}

.kasheer-login-page .pinlogin-field input {
  border: 1px solid var(--kasheer-border) !important;
  border-radius: 10px !important;
  color: var(--kasheer-navy) !important;
  font-weight: 600;
}

.kasheer-login-page .pinlogin-field input:focus {
  border-color: var(--kasheer-navy-soft) !important;
  box-shadow: 0 0 0 3px rgba(12, 31, 74, 0.08);
}

.kasheer-login-page .pull-right {
  float: none;
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--kasheer-muted);
}

.kasheer-login-page .btn_demo {
  background: var(--kasheer-navy) !important;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 6px;
}

.kasheer-login-page .cta-default-whatsapp {
  margin-top: 12px !important;
}

.kasheer-login-page .custom_shadow {
  position: static;
  display: inline-block;
  margin-top: 8px;
}

.kasheer-login-copyright {
  margin-top: auto;
  padding-top: 32px;
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  width: min(100%, 420px);
}

.kasheer-login-page > .container > .row {
  margin: 0;
  width: 100%;
}

.kasheer-login-page > .container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Hide legacy top logo block */
.kasheer-login-page .pen-title {
  display: none;
}

@media (max-width: 991px) {
  .kasheer-login-shell {
    flex-direction: column;
  }

  .kasheer-login-hero {
    flex-basis: auto;
    min-height: 280px;
  }

  .kasheer-login-hero__content {
    padding: 28px 24px 32px;
  }

  .kasheer-login-main {
    flex: 1;
    padding: 32px 20px 24px;
  }
}

@media (max-width: 480px) {
  .kasheer-login-page .btn_login_pin_type {
    font-size: 12px;
    padding: 11px 8px;
  }

  .kasheer-login-logo {
    width: min(100%, 180px);
    margin-bottom: 24px;
  }
}

/* Admin forgot password — same fonts/colors as customer website theme */
.kasheer-forgot-body {
  --ir-primary: #ff1010;
  --ir-accent: #f33;
  --ir-btn-bg: var(--ir-primary);
  --ir-btn-hover: var(--ir-accent);
  --primary-color: var(--ir-primary);
  --ir-font-heading: "Boldonse", system-ui, sans-serif;
  --ir-font-body: "DM Sans", system-ui, sans-serif;
  --kasheer-muted: #6b7280;
  margin: 0;
  min-height: 100vh;
  background: #f5f5f5;
  color: #212121;
  font-family: var(--ir-font-body);
  -webkit-font-smoothing: antialiased;
}

.kasheer-forgot-body *,
.kasheer-forgot-body *::before,
.kasheer-forgot-body *::after {
  box-sizing: border-box;
}

.kasheer-forgot-body .main-header.header-section-menu {
  display: none !important;
}

.kasheer-forgot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 532px;
  margin: 0 auto;
  padding: 36px 16px 48px;
}

.kasheer-forgot-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  padding: 40px 44px;
  background: #fff;
  border: 1px solid rgba(12, 31, 74, 0.08);
  box-shadow:
    0 10px 28px rgba(12, 31, 74, 0.12),
    0 2px 8px rgba(12, 31, 74, 0.06);
  border-radius: 24px;
}

.kasheer-forgot-back {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin: 0;
  color: #5b6178;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.kasheer-forgot-back svg {
  display: block;
  flex-shrink: 0;
}

.kasheer-forgot-back:hover {
  color: var(--ir-primary);
}

[dir="rtl"] .kasheer-forgot-back svg,
.arabic-lang .kasheer-forgot-back svg {
  transform: scaleX(-1);
}

.kasheer-forgot-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.kasheer-forgot-body .kasheer-forgot-card h2 {
  margin: 0;
  font-family: var(--ir-font-heading);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.26;
  letter-spacing: -0.01em;
  color: #212121;
}

.kasheer-forgot-subtitle {
  margin: 0;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.45;
  color: #555;
}

.kasheer-forgot-main {
  text-align: left;
}

[dir="rtl"] .kasheer-forgot-main,
.arabic-lang .kasheer-forgot-main {
  text-align: right;
}

.kasheer-forgot-error,
.kasheer-forgot-success,
.kasheer-forgot-error-txt {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.4;
}

.kasheer-forgot-error,
.kasheer-forgot-error-txt {
  color: #c0392b;
}

.kasheer-forgot-success {
  color: #1e7e34;
}

.kasheer-forgot-field {
  margin: 0 0 12px;
}

.kasheer-forgot-field label {
  display: block;
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #212121;
  text-align: left;
}

[dir="rtl"] .kasheer-forgot-field label,
.arabic-lang .kasheer-forgot-field label {
  text-align: right;
}

.kasheer-forgot-input-wrap {
  position: relative;
}

.kasheer-forgot-field input[type="text"],
.kasheer-forgot-field input[type="password"],
.kasheer-forgot-field input[type="email"] {
  width: 100%;
  height: 48px;
  border: 1px solid #cecece;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: #212121;
  background: #fff;
}

.kasheer-forgot-field input::placeholder {
  color: #818ea1;
}

.kasheer-forgot-input-wrap input[type="text"],
.kasheer-forgot-input-wrap input[type="email"] {
  padding-left: 44px;
}

.kasheer-forgot-input-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  pointer-events: none;
  line-height: 0;
}

[dir="rtl"] .kasheer-forgot-input-wrap input[type="text"],
[dir="rtl"] .kasheer-forgot-input-wrap input[type="email"],
.arabic-lang .kasheer-forgot-input-wrap input[type="text"],
.arabic-lang .kasheer-forgot-input-wrap input[type="email"] {
  padding-left: 14px;
  padding-right: 44px;
}

[dir="rtl"] .kasheer-forgot-input-icon,
.arabic-lang .kasheer-forgot-input-icon {
  left: auto;
  right: 18px;
}

.kasheer-forgot-field input:focus {
  outline: none;
  border-color: var(--ir-primary);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--ir-primary) 25%, transparent);
}

.kasheer-forgot-card .select2-container {
  width: 100% !important;
}

.kasheer-forgot-card .select2-container .select2-selection--single {
  height: 48px;
  border: 1px solid #cecece;
  border-radius: 12px;
}

.kasheer-forgot-card .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 46px;
  padding-left: 14px;
  color: #212121;
}

.kasheer-forgot-card .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px;
}

.kasheer-forgot-submit {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 19px;
  border: 0;
  border-radius: 12px;
  background: var(--ir-btn-bg);
  color: #fff;
  font-family: var(--ir-font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
}

.kasheer-forgot-submit:hover,
.kasheer-forgot-submit:focus {
  background: var(--ir-btn-hover);
}

.kasheer-forgot-body.arabic-lang,
.kasheer-forgot-body.arabic-lang .kasheer-forgot-card h2,
.kasheer-forgot-body.arabic-lang .kasheer-forgot-submit {
  font-family: var(--kasheer-arabic-font, "Tajawal", "Cairo", var(--ir-font-body));
}

.kasheer-password-wrap {
  position: relative;
}

.kasheer-password-wrap > input.form-control,
.kasheer-forgot-field .kasheer-password-wrap > input,
.kasheer-forgot-field .kasheer-password-wrap > input[type="password"],
.kasheer-forgot-field .kasheer-password-wrap > input[type="text"] {
  width: 100%;
  padding-right: 44px !important;
}

[dir="rtl"] .kasheer-password-wrap > input.form-control,
[dir="rtl"] .kasheer-forgot-field .kasheer-password-wrap > input,
[dir="rtl"] .kasheer-forgot-field .kasheer-password-wrap > input[type="password"],
[dir="rtl"] .kasheer-forgot-field .kasheer-password-wrap > input[type="text"],
.arabic-lang .kasheer-password-wrap > input.form-control,
.arabic-lang .kasheer-forgot-field .kasheer-password-wrap > input,
.arabic-lang .kasheer-forgot-field .kasheer-password-wrap > input[type="password"],
.arabic-lang .kasheer-forgot-field .kasheer-password-wrap > input[type="text"] {
  padding-right: 14px !important;
  padding-left: 44px !important;
}

.kasheer-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #6b7293;
  cursor: pointer;
  padding: 4px;
  line-height: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kasheer-password-toggle svg {
  display: block;
}

.kasheer-password-toggle .kasheer-eye-closed[hidden],
.kasheer-password-toggle .kasheer-eye-open[hidden] {
  display: none !important;
}

[dir="rtl"] .kasheer-password-toggle,
.arabic-lang .kasheer-password-toggle {
  right: auto;
  left: 12px;
}

.kasheer-password-toggle:hover,
.kasheer-password-toggle:focus {
  color: #0c1f4a;
  outline: none;
}

/* Login uses flex layout — keep toggle in-flow there */
.kasheer-login-page .kasheer-password-toggle {
  position: static;
  transform: none;
  right: auto;
  left: auto;
}

@media (max-width: 575px) {
  .kasheer-forgot-wrap {
    padding: 24px 12px 32px;
  }

  .kasheer-forgot-card {
    padding: 28px 20px;
    gap: 22px;
  }

  .kasheer-forgot-card h2 {
    font-size: 24px;
  }
}
