/* ============================================================
   EHN Login – Namibian-themed split-screen layout
   Colors: Blue #003580 · Red #d21034 · Green #009543 · Gold #ffce00
   ============================================================ */

:root {
  --ehn-blue:  #003580;
  --ehn-red:   #d21034;
  --ehn-green: #009543;
  --ehn-gold:  #ffce00;
}

/* ---- hide default frappe page chrome on the login route ---- */
body[data-path="login"] .page-header,
body[data-path="login"] .page-head,
body[data-path="login"] footer,
body[data-path="login"] .web-footer,
body[data-path="login"] .navbar,
body[data-path="login"] nav.navbar {
  display: none !important;
}
body[data-path="login"] .main-section {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}
body[data-path="login"] .container {
  max-width: 100% !important;
  padding: 0 !important;
}
body[data-path="login"] .web-content {
  padding: 0 !important;
}

/* ---- wrapper: two-column split ---- */
.ehn-login-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ---- HERO (left) ---- */
.ehn-hero-panel {
  flex: 0 0 42%;
  background: linear-gradient(160deg, var(--ehn-blue) 0%, #002050 60%, #001030 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}
/* subtle diagonal accent stripe */
.ehn-hero-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(135deg,
      transparent 40%,
      var(--ehn-red) 40%, var(--ehn-red) 42%,
      transparent 42%, transparent 44%,
      var(--ehn-green) 44%, var(--ehn-green) 46%,
      transparent 46%);
  opacity: .12;
  pointer-events: none;
}
.ehn-hero-content { position: relative; z-index: 1; }
.ehn-hero-logo { margin-bottom: 1.5rem; }
.ehn-hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: .75rem;
}
.ehn-hero-subtitle {
  font-size: 1.05rem;
  opacity: .85;
  line-height: 1.5;
  margin-bottom: 2rem;
}
.ehn-hero-features { display: flex; flex-direction: column; gap: .75rem; }
.ehn-feature-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .92rem;
  opacity: .9;
}
.ehn-feature-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ehn-gold);
  flex-shrink: 0;
}
.ehn-hero-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 2rem;
  opacity: .55;
  font-size: .78rem;
}

/* ---- FORM (right) ---- */
.ehn-form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: #f8f9fb;
  overflow-y: auto;
}
.ehn-form-panel section { width: 100%; max-width: 420px; }
.ehn-form-panel .page-card { border: none; box-shadow: 0 1px 6px rgba(0,0,0,.06); border-radius: 10px; background: #fff; }
.ehn-form-panel .page-card-head { text-align: center; padding: 1.5rem 1.5rem .5rem; }
.ehn-form-panel .page-card-head .app-logo { height: 40px; margin-bottom: .5rem; }
.ehn-form-panel .page-card-head h4 { font-size: 1.1rem; font-weight: 600; color: var(--ehn-blue); }
.ehn-form-panel .page-card-body { padding: .5rem 1.5rem; }
.ehn-form-panel .page-card-actions { padding: .5rem 1.5rem 1.5rem; }

/* primary button in Namibian blue */
.ehn-form-panel .btn-primary {
  background: var(--ehn-blue) !important;
  border-color: var(--ehn-blue) !important;
  border-radius: 6px;
}
.ehn-form-panel .btn-primary:hover,
.ehn-form-panel .btn-primary:focus {
  background: #002a6a !important;
  border-color: #002a6a !important;
}

/* links */
.ehn-form-panel a { color: var(--ehn-blue); }
.ehn-form-panel .forgot-password-message a { font-size: .85rem; }

/* sign-up message */
.ehn-form-panel .sign-up-message { font-size: .88rem; margin-top: 1rem; }

/* input focus ring */
.ehn-form-panel .form-control:focus {
  border-color: var(--ehn-blue);
  box-shadow: 0 0 0 2px rgba(0,53,128,.15);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .ehn-login-wrapper { flex-direction: column; }
  .ehn-hero-panel {
    flex: none;
    padding: 2rem 1.5rem;
    text-align: center;
  }
  .ehn-hero-title { font-size: 1.6rem; }
  .ehn-hero-features { align-items: center; }
  .ehn-hero-footer { padding-top: 1rem; }
  .ehn-form-panel { padding: 1.5rem 1rem; }
}

