:root {
  --navy: #2c3e50;
  --blue: #2e86c1;
  --pale-blue: #eaf2f8;
  --ink: #17202a;
  --muted: #626f7a;
  --danger: #a93226;
  --success: #1e8449;
  --paper: #ffffff;
  --background: #f4f6f7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: Arial, Helvetica, sans-serif;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  color: white;
  background: var(--navy);
}

.brand { margin: 0; font-size: 20px; }
.user-menu { display: flex; align-items: center; gap: 12px; }
.container { width: min(100% - 32px, 1000px); margin: 30px auto; }
.auth-card { width: min(100%, 430px); margin: 55px auto; }

.card {
  padding: 24px;
  border: 1px solid #d5d8dc;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 5px 18px rgb(0 0 0 / 7%);
}

.field-group { margin-bottom: 16px; }
label { display: block; margin-bottom: 6px; font-weight: 700; }

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #aeb6bf;
  border-radius: 5px;
  font: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: 3px solid rgb(46 134 193 / 20%);
  border-color: var(--blue);
}

.button {
  display: inline-block;
  padding: 10px 16px;
  border: 0;
  border-radius: 5px;
  color: white;
  background: var(--navy);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: #1b2631; }
.button-secondary { color: var(--navy); background: var(--pale-blue); }
.inline-form { display: inline; }

.alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-left: 4px solid;
  border-radius: 4px;
  background: white;
}

.alert-error { color: var(--danger); border-color: var(--danger); }
.alert-success { color: var(--success); border-color: var(--success); }
.help { color: var(--muted); font-size: 14px; line-height: 1.5; }
.dashboard-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.table-wrap { margin-top: 18px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: 10px; border-bottom: 1px solid #d5d8dc; text-align: left; }
th { color: var(--navy); background: var(--pale-blue); }
.actions { display: flex; align-items: center; gap: 8px; }
.text-button { padding: 0; border: 0; color: var(--blue); background: transparent; font: inherit; cursor: pointer; }
.text-danger { color: var(--danger); }
.badge { display: inline-block; padding: 3px 8px; border-radius: 20px; background: var(--pale-blue); font-size: 12px; }
.badge-archived { color: var(--muted); background: #eaeded; }

@media (max-width: 600px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .container { width: min(100% - 20px, 1000px); margin-top: 18px; }
  .card { padding: 18px; }
  .page-grid { grid-template-columns: 1fr; }
}

/* Authenticated application shell, based on the September frontend handoff. */
body.app-page {
  height: 100vh;
  overflow: hidden;
  color: #333;
  background: #333;
}

.app-container { display: flex; width: 100%; height: 100vh; background: #f8fafc; }
.sidebar { display: flex; flex: 0 0 auto; width: 240px; flex-direction: column; color: #fff; background: #2d3e50; }
.sidebar-header { display: flex; align-items: center; gap: 10px; padding: 15px; border-bottom: 1px solid rgb(255 255 255 / 5%); }
.brand-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 6px; background: #f1f5f9; }
.brand-title { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .5px; }
.brand-subtitle { color: #a3b8cc; font-size: 10px; }
.sidebar-nav {
  flex: 1;
  padding: 15px 0;
  overflow-y: auto;
  scrollbar-color: #8ba6bd #243545;
  scrollbar-width: thin;
}
.sidebar-nav::-webkit-scrollbar { width: 9px; }
.sidebar-nav::-webkit-scrollbar-track { background: #243545; }
.sidebar-nav::-webkit-scrollbar-thumb { border: 2px solid #243545; border-radius: 10px; background: #8ba6bd; }
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: #aed6f1; }
.nav-section-title { padding: 12px 20px 6px; color: #677c92; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: #a3b8cc; font-size: 13px; font-weight: 500; text-decoration: none; }
.nav-item:hover { color: #fff; background: #36495d; }
.nav-item.active { margin: 0 8px; padding: 10px 12px; border-radius: 4px; color: #fff; background: #3a4f66; font-weight: 600; }
.nav-item i { width: 16px; text-align: center; }
.nav-disabled { cursor: default; opacity: .55; }
.sidebar-footer { padding: 15px; border-top: 1px solid rgb(255 255 255 / 5%); background: rgb(0 0 0 / 15%); }
.system-status { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: #a3e635; font-size: 11px; font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #a3e635; }
.system-info { margin-left: 16px; color: #a3b8cc; font-size: 10px; }
.user-profile { display: flex; align-items: center; gap: 10px; padding: 12px 15px; background: rgb(0 0 0 / 20%); }
.user-avatar { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: #fff; background: #0073aa; font-size: 12px; font-weight: 700; }
.user-details { flex: 1; min-width: 0; }
.user-name { overflow: hidden; color: #fff; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.user-role { color: #a3b8cc; font-size: 10px; }
.logout-icon { padding: 5px; border: 0; color: #a3b8cc; background: transparent; cursor: pointer; }
.logout-icon:hover { color: #fff; }
.main-wrapper { display: flex; flex: 1; flex-direction: column; min-width: 0; height: 100vh; overflow-y: auto; }
.top-header { display: flex; flex: 0 0 60px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; border-bottom: 1px solid #e2e8f0; background: #fff; }
.header-left { display: flex; flex: 1; align-items: center; gap: 15px; max-width: 500px; }
.toggle-btn { padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 4px; color: #64748b; background: #f8fafc; cursor: pointer; }
.search-bar { display: flex; width: 100%; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 6px; background: #f1f5f9; }
.search-bar i { color: #0073aa; }
.search-bar input { width: 100%; padding: 0; border: 0; outline: 0; color: #475569; background: transparent; font-size: 12px; }
.header-right { display: flex; align-items: center; gap: 12px; }
.badge-operational { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid #ceead6; border-radius: 12px; color: #137333; background: #e6f4ea; font-size: 11px; font-weight: 600; }
.badge-operational::before { width: 6px; height: 6px; border-radius: 50%; background: #137333; content: ''; }
.date-time-pill { padding: 4px 12px; border-radius: 12px; color: #1e293b; background: #f1f5f9; font-size: 11px; font-weight: 500; white-space: nowrap; }
.content-body { flex: 1; padding: 20px 25px; }
.content-title { padding-bottom: 12px; margin-bottom: 20px; border-bottom: 1px dashed #aaa; font-family: Georgia, 'Times New Roman', serif; font-size: 20px; font-weight: 700; text-align: center; }
.content-title span { color: #2e86c1; }
.summary-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 20px; }
.summary-grid.four { grid-template-columns: repeat(4, 1fr); }
.summary-card { min-height: 78px; padding: 12px 8px; border: 1px solid #999; background: #f5f5f5; text-align: center; transition: box-shadow .2s, transform .2s; }
.summary-card:hover { box-shadow: 0 0 12px #aed6f1; transform: translateY(-2px); }
.summary-value { display: block; margin-bottom: 7px; color: #2c3e50; font-size: 18px; font-weight: 700; }
.summary-label { display: block; color: #777; font-size: 10px; text-transform: uppercase; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dashboard-box, .section-box { min-height: 115px; padding: 15px; border: 1px solid #999; border-radius: 4px; background: #f8f8f8; }
.box-heading { padding-bottom: 6px; margin-bottom: 12px; border-bottom: 1px solid #ddd; color: #2c3e50; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.app-page table { font-size: 11px; }
.app-page th { padding: 7px 8px; border: 1px solid #ccc; background: #e8e8e8; }
.app-page td { padding: 8px; border: 1px solid #ccc; color: #555; }
.empty-message { padding: 12px; color: #999; font-style: italic; text-align: center; }
.quick-links { display: flex; flex-direction: column; gap: 7px; }
.quick-link { width: 75%; padding: 7px 10px; border: 1px solid #ddd; color: #2c3e50; background: #e5e5e5; font-size: 11px; text-decoration: none; transition: width .2s, background .2s; }
.quick-link:hover { width: 85%; color: #000; background: #aed6f1; }
.page-footer { padding: 8px; border-top: 1px solid #1e293b; color: #fff; background: #2d3e50; font-size: 10px; text-align: center; }
.property-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 15px; margin-bottom: 18px; }
.property-grid.equal { grid-template-columns: 1fr 1fr; }
.app-page .field-group { margin-bottom: 12px; }
.app-page label { margin-bottom: 4px; color: #444; font-size: 11px; font-weight: 600; }
.field-help { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.app-page input, .app-page select, .app-page textarea { padding: 7px 9px; border-color: #ccc; border-radius: 3px; font-size: 11px; }
.btn-submit { width: 100%; padding: 8px 14px; margin-top: 5px; border: 0; border-radius: 3px; color: #fff; background: #0073aa; font-size: 11px; font-weight: 600; cursor: pointer; }
.btn-submit:hover { background: #005a87; }
.action-btn { display: inline-block; padding: 4px 7px; border: 0; border-radius: 2px; color: #fff; font-size: 10px; text-decoration: none; cursor: pointer; }
.btn-edit { background: #2e86c1; }
.btn-delete { background: #c0392b; }
.inline-actions { display: flex; align-items: center; gap: 5px; }
.form-row, .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section-spacing { margin-top: 18px; }
.button-fit { width: auto; min-width: 180px; }
.compact-form { display: flex; align-items: center; gap: 6px; }
.compact-form input { width: 135px; }
.status-badge { display: inline-block; padding: 3px 7px; border-radius: 12px; font-size: 10px; }
.status-active { color: #137333; background: #e6f4ea; }
.status-muted { color: #555; background: #e5e7eb; }
.compact-stack { display: grid; gap: 5px; min-width: 125px; }
.check-label { display: flex; align-items: center; gap: 5px; margin: 4px 0; font-weight: 400; }
.check-label input { width: auto; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 12px; margin-bottom: 18px; border: 1px solid #d1d5db; background: #fff; }
.filter-bar label { margin: 0; }
.filter-bar input { width: auto; margin-left: 5px; }
.record-link { display: block; padding: 8px; border-bottom: 1px solid #ddd; color: var(--blue); text-decoration: none; }
.record-link:hover { background: var(--pale-blue); }
.inline-entry { display: flex; gap: 8px; margin-top: 15px; }
.inline-entry input { flex: 1; }
.total-row td { color: #2c3e50; background: #e8e8e8; font-weight: 700; }
.section-box code { overflow-wrap: anywhere; }
.card-box { padding: 18px; border: 1px solid #999; border-radius: 4px; background: #f8f8f8; transition: box-shadow .3s; }
.card-box:hover, .section-box:hover { box-shadow: 0 0 12px #aed6f1; }
.backup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.left-column { display: flex; flex-direction: column; gap: 20px; }
.warning-alert { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 18px; border: 1px solid #fecaca; border-radius: 4px; color: #991b1b; background: #fef2f2; font-size: 11px; }
body:has(input[value="record_payment"]) .property-grid.equal { grid-template-columns: 1fr 340px; gap: 20px; }
.receipt-body { min-width: 280px; background: #eef2f5; }
.receipt-page { width: min(100% - 30px, 820px); margin: 30px auto; }
.receipt-actions { display: flex; justify-content: space-between; margin-bottom: 16px; }
.rent-receipt { padding: clamp(24px, 5vw, 52px); border: 1px solid #9ca3af; color: #333; background: #fffdf8; box-shadow: 0 10px 30px rgb(0 0 0 / 10%); font-family: Georgia, 'Times New Roman', serif; }
.rent-receipt-header { text-align: center; }
.rent-receipt-header h1 { margin: 0; color: var(--navy); font: 800 clamp(25px, 5vw, 43px)/1 Arial, sans-serif; letter-spacing: .04em; }
.rent-receipt-header p { margin: 7px 0 14px; color: #536475; font: 600 13px/1.4 Arial, sans-serif; }
.rent-receipt-header strong { display: inline-block; padding: 5px 12px; border: 2px solid var(--navy); color: var(--navy); font: 800 17px/1 Arial, sans-serif; }
.receipt-meta { display: flex; justify-content: space-between; gap: 20px; margin: 25px 0 12px; font-size: 18px; }
.receipt-meta b { color: #b23b3b; font-family: Arial, sans-serif; }
.receipt-statement { font-size: 17px; font-style: italic; line-height: 1.55; }
.receipt-statement p { display: flex; align-items: end; gap: 8px; margin: 12px 0; }
.receipt-statement strong { flex: 1; min-width: 80px; padding: 0 6px 3px; border-bottom: 2px dotted #8b8b8b; font-weight: 500; overflow-wrap: anywhere; }
.receipt-payment-line strong:last-child { flex: 0 1 180px; }
.receipt-total-signature { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr); align-items: end; gap: 36px; margin-top: 24px; }
.receipt-total { display: flex; align-items: center; gap: 12px; font-size: 23px; font-weight: 700; }
.receipt-total strong { flex: 1; min-height: 58px; padding: 13px; border: 3px double #475569; color: var(--navy); background: #fff; font: 800 clamp(21px, 4vw, 30px)/1 Arial, sans-serif; text-align: center; }
.receipt-signature { display: grid; grid-template-columns: auto 1fr; gap: 8px; font-size: 17px; font-style: italic; }
.signature-line { border-bottom: 2px dotted #8b8b8b; }
.receipt-signature small { grid-column: 1 / -1; text-align: right; }
.receipt-credit { margin: 15px 0 0; color: var(--success); font: 700 13px Arial, sans-serif; text-align: right; }
.rent-receipt > footer { margin-top: 16px; color: #59636e; font-size: 14px; font-style: italic; text-align: center; }
@media print {
  @page { size: A4 portrait; margin: 12mm; }
  .receipt-body { background: #fff; }
  .receipt-actions { display: none; }
  .receipt-page { width: 100%; margin: 0; }
  .rent-receipt { border: 0; box-shadow: none; print-color-adjust: exact; }
}

@media (max-width: 800px) {
  .sidebar { flex-basis: 74px; }
  .sidebar-header { justify-content: center; }
  .brand-copy, .nav-label, .nav-section-title, .sidebar-footer, .user-details { display: none; }
  .nav-item, .nav-item.active { justify-content: center; margin: 0; padding: 12px; }
  .summary-grid, .summary-grid.four { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .property-grid, .property-grid.equal, .form-grid, .backup-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .sidebar { flex-basis: 56px; }
  .content-body { padding: 12px; }
  .header-right .badge-operational { display: none; }
  .date-time-pill { display: none; }
  .summary-grid, .summary-grid.four { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* System-wide responsive refinements. */
img, svg, video { max-width: 100%; height: auto; }
.content-body, .section-box, .card-box, .dashboard-box { min-width: 0; }
.table-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 640px; }
@media (max-width: 1100px) {
  .summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .top-header { gap: 10px; padding-inline: 12px; }
  .header-left { max-width: none; }
  .header-right { flex: 0 0 auto; }
  .filter-bar { align-items: stretch; }
  .filter-bar label { flex: 1 1 180px; }
  .filter-bar input { width: 100%; margin: 5px 0 0; }
  body:has(input[value="record_payment"]) .property-grid.equal { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .top-header { min-height: 60px; height: auto; flex-wrap: wrap; padding-block: 9px; }
  .header-left { flex-basis: 100%; order: 2; }
  .header-right { width: 100%; justify-content: flex-end; order: 1; }
  .search-bar { min-width: 0; }
  .content-title { font-size: 18px; }
  .inline-actions, .compact-form, .inline-entry { align-items: stretch; flex-direction: column; }
  .compact-form input, .button-fit { width: 100%; min-width: 0; }
  .receipt-statement p, .receipt-payment-line { align-items: stretch; flex-direction: column; gap: 3px; }
  .receipt-payment-line strong:last-child { flex-basis: auto; }
  .receipt-total-signature { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 420px) {
  .receipt-page { width: min(100% - 16px, 820px); margin-block: 8px; }
  .receipt-actions { gap: 8px; }
  .receipt-actions .button { padding: 9px 11px; font-size: 13px; }
  .rent-receipt { padding: 20px 16px; }
  .receipt-meta { align-items: flex-start; flex-direction: column; gap: 8px; font-size: 15px; }
  .receipt-statement { font-size: 15px; }
}

/* Login presentation retained from the frontend handoff. */
.login-page { min-height: 100vh; background: #f8f9fa; }
.login-frame { display: flex; flex-direction: column; min-height: 100vh; max-width: 1000px; margin: 0 auto; border: 2px solid #1f1b1b; background: #fff; }
.login-topbar { display: flex; justify-content: center; padding: 10px 16px; border-bottom: 2px solid #333; background: #2c3e50; }
.login-logo { padding: 6px 12px; border: 1px solid #181616; background: whitesmoke; text-align: center; font-size: 14px; font-weight: 700; }
.login-logo strong { font-size: 28px; }
.login-welcome { padding: 14px 20px 8px; color: #2e86c1; font: 700 20px Georgia, serif; }
.login-description { padding: 0 20px 14px; text-align: center; font: 700 18px/1.5 Georgia, serif; }
.login-middle { display: flex; flex: 1; }
.login-services { flex: 0 0 250px; padding: 20px; border-right: 2px solid #1f1b1b; color: white; background: #2c3e50; font-size: 13px; line-height: 1.6; }
.login-content { flex: 1; padding: 20px; }
.login-box { max-width: 360px; padding: 16px; margin: 25px auto 0; border: 1px solid #1b4f72; color: white; background: #2c3e50; box-shadow: 0 0 12px #aed6f1; }
.login-box h2 { padding-bottom: 8px; margin-top: 0; border-bottom: 2px solid #1b4f72; font-family: Georgia, serif; text-align: center; }
.login-box label { color: whitesmoke; }
.login-box .button { width: 100%; color: #111; background: whitesmoke; }
.login-footer { padding: 10px 16px; text-align: center; background: whitesmoke; font-size: 12px; }
@media (max-width: 650px) { .login-middle { flex-direction: column; } .login-services { flex-basis: auto; border-right: 0; } .login-logo strong { font-size: 20px; } }

/* September NAJYAM responsive-shell handoff. */
.app-container { position: relative; overflow: hidden; }
.app-container > .sidebar { position: relative; z-index: 40; transition: width .32s ease, transform .32s ease, opacity .2s ease; will-change: width, transform; }
.app-container > .main-wrapper { min-width: 0; transition: width .28s ease; }
@media (min-width: 801px) {
  .app-container.sidebar-off > .sidebar { width: 64px !important; min-width: 64px !important; overflow: hidden; opacity: 1; }
  .app-container.sidebar-off > .sidebar .sidebar-header { justify-content: center; padding-inline: 8px; }
  .app-container.sidebar-off > .sidebar .brand-copy,
  .app-container.sidebar-off > .sidebar .nav-section-title,
  .app-container.sidebar-off > .sidebar .sidebar-footer,
  .app-container.sidebar-off > .sidebar .user-details,
  .app-container.sidebar-off > .sidebar .user-profile > i,
  .app-container.sidebar-off > .sidebar .inline-form { display: none; }
  .app-container.sidebar-off > .sidebar .sidebar-nav { padding-block: 15px; }
  .app-container.sidebar-off > .sidebar .nav-item,
  .app-container.sidebar-off > .sidebar .nav-item.active { justify-content: center; gap: 0; margin: 0 8px 6px; padding: 12px 0; border-radius: 4px; }
  .app-container.sidebar-off > .sidebar .nav-label { display: none; }
  .app-container.sidebar-off > .sidebar .nav-item i { width: auto; font-size: 16px; }
  .app-container.sidebar-off > .sidebar .user-profile { justify-content: center; padding-inline: 8px; }
  .app-container.sidebar-off > .sidebar .shared-sidebar-resizer { display: none; }
}
.shared-sidebar-resizer { position: absolute; z-index: 45; top: 0; right: -5px; width: 10px; height: 100%; cursor: ew-resize; touch-action: none; }
.shared-sidebar-resizer::after { position: absolute; top: 50%; left: 4px; width: 2px; height: 54px; border-radius: 3px; background: #aed6f1; content: ''; opacity: .45; transform: translateY(-50%); transition: .2s; }
.shared-sidebar-resizer:hover::after { width: 4px; opacity: 1; }
.shared-mobile-overlay { display: none; position: absolute; z-index: 30; inset: 0; padding: 0; border: 0; background: rgb(15 23 32 / 58%); opacity: 0; pointer-events: none; transition: opacity .28s ease; }
.top-header .toggle-btn { display: inline-grid; min-width: 38px; min-height: 36px; place-content: center; transition: background .2s, transform .2s; }
.top-header .toggle-btn:active { transform: scale(.94); }
@media (max-width: 800px) {
  body.app-page { overflow: hidden; }
  .app-container > .sidebar { position: absolute !important; inset: 0 auto 0 0; width: min(82vw, 280px) !important; min-width: 0 !important; max-width: 280px; opacity: 1; box-shadow: 18px 0 42px rgb(0 0 0 / 35%); transform: translateX(-105%); }
  .app-container.mobile-sidebar-on > .sidebar { transform: translateX(0); }
  .app-container.sidebar-off > .sidebar { width: min(82vw, 280px) !important; overflow: auto; opacity: 1; }
  .app-container.sidebar-off > .sidebar > *:not(.shared-sidebar-resizer) { visibility: visible; }
  .shared-sidebar-resizer { display: none; }
  .shared-mobile-overlay { display: block; }
  .app-container.mobile-sidebar-on > .shared-mobile-overlay { opacity: 1; pointer-events: auto; }
  .app-container > .main-wrapper { width: 100% !important; min-width: 0 !important; }
}
@media (prefers-reduced-motion: reduce) { .app-container > .sidebar, .app-container > .main-wrapper, .shared-mobile-overlay { transition: none; } }

/* Updated NAJYAM login presentation. */
.login-page { min-width: 280px; color: #17202a; background: radial-gradient(circle at 10% 10%, #aed6f17a, transparent 28rem), radial-gradient(circle at 90% 90%, #8ec29840, transparent 30rem), #f8f9fa; font-family: Inter, 'Segoe UI', Arial, sans-serif; }
.login-frame { width: min(1180px, 100%); max-width: none; min-height: 100dvh; border: 0; border-inline: 1px solid #2c3e5024; background: #ffffffd9; box-shadow: 0 0 50px #1f2d3d1f; }
.login-topbar { min-height: 84px; align-items: center; padding: 14px clamp(16px, 4vw, 42px); border: 0; border-bottom: 4px solid #8ec298; color: #fff; background: linear-gradient(120deg, #1e2c39, #2c3e50); }
.login-logo { border: 0; color: #fff; background: transparent; letter-spacing: .08em; }
.login-logo strong { font: 700 clamp(1rem, 3vw, 1.8rem) Georgia, serif; }
.login-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: center; gap: clamp(25px, 6vw, 72px); padding: clamp(30px, 6vw, 70px) clamp(20px, 7vw, 80px); background: linear-gradient(135deg, #fffffff5, #f0f7fbe6); }
.login-welcome { padding: 0; color: #1e2c39; font: 700 clamp(2.65rem, 5.3vw, 5.25rem)/.96 Georgia, serif; letter-spacing: -.045em; }
.login-welcome em { color: #2e86c1; font-style: normal; }
.login-description { padding: 0; color: #435466; font: 500 clamp(.92rem, 1.5vw, 1.05rem)/1.75 Inter, 'Segoe UI', sans-serif; text-align: left; }
.property-art { position: relative; height: 270px; }
.art-sun { position: absolute; top: 0; right: 5%; width: 175px; height: 175px; border-radius: 50%; background: linear-gradient(145deg, #aed6f1, #dceef8); box-shadow: 0 0 0 26px #aed6f126; }
.art-building { position: absolute; right: 22%; bottom: 15px; width: 150px; height: 215px; border-radius: 5px 5px 0 0; background: linear-gradient(145deg, #344b60, #1e2c39); box-shadow: 0 25px 40px #1e2c3933; }
.art-ground { position: absolute; right: 0; bottom: 8px; width: 95%; height: 9px; border-radius: 10px; background: #8ec298; }
.login-middle { min-height: 470px; }
.login-services { flex: 0 0 270px; padding: 34px 25px; border: 0; background: linear-gradient(155deg, #2c3e50, #1e2c39); }
.login-content { display: grid; place-items: center; padding: clamp(38px, 6vw, 68px); }
.login-box { width: min(430px, 100%); max-width: none; padding: clamp(25px, 5vw, 42px); margin: 0; border: 1px solid #aed6f18c; border-radius: 22px; background: linear-gradient(145deg, #344b60, #1e2c39); box-shadow: 0 24px 55px #1e2c3940, 0 0 0 7px #aed6f121; }
.login-box h2 { border: 0; font-size: 28px; }
.login-box .button { padding: 13px 18px; border-radius: 10px; color: #1e2c39; background: linear-gradient(135deg, #fff, #e9f4ec); }
.login-box input { padding: 13px 14px; border-radius: 10px; }
.login-footer { padding: 18px; border-top: 1px solid #2c3e501f; background: #fff; }
@media (max-width: 700px) { .login-hero { display: block; padding: 35px 20px; } .property-art { display: none; } .login-middle { flex-direction: column; } .login-services { flex-basis: auto; } .login-content { padding: 50px 18px; } }
