/* KZANT Estate login — isolated styles; no shared auth logic altered */
:root {
  --ke-green: #07543d;
  --ke-deep: #063f31;
  --ke-gold: #b68b39;
  --ke-ink: #1d2422;
  --ke-muted: #65706c;
  --ke-stroke: #d8dfda;
  --ke-bg: #f5f2ef;
  --ke-focus: #1b8369;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; }
body.ke-login-page {
  min-height: 100vh;
  margin: 0;
  color: var(--ke-ink);
  background: radial-gradient(ellipse at 15% 8%, #fbf8f4 0%, transparent 45%),
              linear-gradient(160deg,#f8f7f4,#f1ebe6 100%);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ke-login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 5vw, 72px);
}
.ke-login-panel {
  width: min(1240px, 100%);
  min-height: 650px;
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  background: #fff;
  border: 1px solid rgba(52,65,55,.08);
  box-shadow: 0 24px 70px rgba(55,46,37,.12);
  border-radius: 26px;
  overflow: hidden;
}
.ke-login-content {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 4.4vw, 66px);
  min-width: 0;
}
[dir="rtl"] .ke-login-content { grid-column: 2; }
.ke-visual {
  grid-column: 2;
  grid-row: 1;
  min-height: 650px;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  background-color: #d1d9cb;
  overflow: hidden;
}
[dir="rtl"] .ke-visual { grid-column: 1; }
.ke-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('/images/estate-login-property.jpg');
  background-position: 50% center;
  background-size: cover;
  transform: scale(1.015);
}
.ke-visual-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0,54,40,.95) 0%, rgba(0,54,40,.68) 31%, rgba(0,54,40,.07) 74%);
}
.ke-visual-copy { padding: 44px 38px; width: 100%; color: #fff; }
.ke-visual-copy h2 { font-size: clamp(27px,3.1vw,43px); line-height: 1.25; margin: 0 0 17px; font-weight: 800; }
.ke-visual-copy p { font-size: 16px; line-height: 1.9; margin: 0 0 30px; color: rgba(255,255,255,.95); }
.ke-visual-features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.ke-visual-features span { text-align: center; border-inline-end: 1px solid rgba(255,255,255,.35); padding: 12px 8px; font-size: 13px; line-height: 1.55; }
.ke-visual-features span:last-child { border-inline-end: none; }
.ke-brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; width: max-content; max-width: 100%; }
.ke-brand-icon { color: var(--ke-gold); width: 55px; height: 58px; flex: none; }
.ke-brand-copy { display: grid; gap: 3px; min-width: 0; }
.ke-brand strong { color: var(--ke-green); font-family: "Segoe UI",Arial,sans-serif; font-weight: 800; font-size: clamp(23px,2.3vw,34px); line-height: 1.15; direction: ltr; text-align: start; }
.ke-brand small { color: #59605c; font-size: 13px; line-height: 1.4; }
.ke-welcome { margin: clamp(36px,5vw,65px) 0 27px; }
.ke-welcome h1 { font-size: clamp(31px, 3.8vw, 48px); font-weight: 800; margin: 0 0 12px; line-height: 1.2; }
.ke-welcome p { color: var(--ke-muted); line-height: 1.85; font-size: 16px; margin: 0; }
.ke-form { display: grid; gap: 23px; }
.ke-field { display: grid; gap: 9px; }
.ke-field label { font-size: 15px; font-weight: 700; }
.ke-input-wrap { position: relative; display: flex; align-items: center; }
.ke-input-wrap input {
  width: 100%;
  height: 55px;
  padding-inline-start: 49px;
  padding-inline-end: 15px;
  border: 1px solid var(--ke-stroke);
  border-radius: 11px;
  background: #fff;
  font: inherit;
  color: var(--ke-ink);
  font-size: 15px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ke-input-wrap input::placeholder { color: #929a96; opacity: 1; }
.ke-input-wrap input:focus { border-color: var(--ke-focus); box-shadow: 0 0 0 3px rgba(27,131,105,.14); }
.ke-input-wrap input.ke-invalid { border-color: #b94d51; }
.ke-input-icon { position: absolute; inset-inline-start: 17px; width: 21px; height: 21px; color: #6d7772; pointer-events: none; }
.ke-password-wrap input { padding-inline-end: 53px; }
.ke-toggle-password {
  border: 0;
  background: transparent;
  position: absolute;
  inset-inline-end: 11px;
  padding: 9px;
  display: grid;
  place-items: center;
  color: #6d7772;
  border-radius: 6px;
  cursor: pointer;
}
.ke-toggle-password svg { width: 22px; height: 22px; }
.ke-toggle-password:focus-visible, .ke-footer a:focus-visible, .ke-brand:focus-visible { outline: 2px solid var(--ke-focus); outline-offset: 3px; }
.ke-form-options { display:flex; align-items:center; justify-content: space-between; margin-top: -2px; }
.ke-remember { display: inline-flex; gap: 10px; align-items: center; color: #4f5b56; font-size: 14px; cursor: pointer; }
.ke-remember input { width: 19px; height: 19px; accent-color: var(--ke-green); }
.ke-submit { height: 57px; border: 0; border-radius: 11px; background: var(--ke-green); color: #fff; font: inherit; font-size: 18px; font-weight: 750; cursor: pointer; transition: background .15s, transform .15s; }
.ke-submit:hover { background: var(--ke-deep); }
.ke-submit:active { transform: translateY(1px); }
.ke-submit:focus-visible { outline: 3px solid #b9d8ca; outline-offset: 3px; }
.ke-errors, .ke-status { padding: 12px 15px; border-radius: 9px; font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
.ke-errors { background: #fff0f0; border: 1px solid #eab4b4; color: #8a252c; }
.ke-errors ul { padding-inline-start: 19px; margin: 0; }
.ke-status { background: #eaf7ef; border: 1px solid #a6d7b8; color: #175634; }
.ke-footer { display: flex; justify-content: space-between; gap: 10px; color: #919995; margin-top: auto; padding-top: 35px; font-size: 12px; }
.ke-footer a { color: var(--ke-green); font-weight: 600; text-decoration: none; }
.ke-footer a:hover { text-decoration: underline; }
@media (max-width: 850px) {
  .ke-login-panel { width: min(560px,100%); grid-template-columns: 1fr; min-height: 0; }
  .ke-login-content,[dir="rtl"] .ke-login-content { grid-column: 1; grid-row: 2; padding: 30px; }
  .ke-visual,[dir="rtl"] .ke-visual { grid-column: 1; grid-row: 1; min-height: 220px; }
  .ke-visual-copy { padding: 28px 30px; }
  .ke-visual-copy h2 { font-size: 25px; }
  .ke-visual-copy p { font-size: 14px; margin-bottom: 0; }
  .ke-visual-features { display: none; }
  .ke-welcome { margin: 30px 0 23px; }
}
@media (max-width: 480px) {
  .ke-login-shell { padding: 12px; align-items: flex-start; }
  .ke-login-panel { border-radius: 17px; }
  .ke-login-content { padding: 23px !important; }
  .ke-visual,[dir="rtl"] .ke-visual { min-height: 185px; }
  .ke-visual-copy { padding: 20px 23px; }
  .ke-visual-copy h2 { font-size: 22px; margin-bottom: 7px; }
  .ke-visual-copy p { font-size: 12px; }
  .ke-brand-icon { width: 42px; height: 46px; }
  .ke-welcome h1 { font-size: 29px; }
  .ke-welcome p { font-size: 14px; }
  .ke-form { gap: 18px; }
  .ke-input-wrap input { height: 51px; }
  .ke-submit { height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .ke-submit, .ke-input-wrap input { transition: none; }
}
