/* JanaChetana Staff Login Panel */
:root {
  --green: #2E9B25;
  --green-light: #e8f5e9;
  --green-pale: #f0faf0;
  --blue: #0057A8;
  --navy: #062B63;
  --text: #1a2b3c;
  --text-muted: #6b7c93;
  --border: #d8e3ef;
  --white: #ffffff;
  --page-bg: #f4f7fb;
  --font: 'Inter', system-ui, sans-serif;
  --font-brand: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  background: var(--page-bg);
}

/* Decorative dot patterns */
.login-deco-dots {
  position: absolute;
  top: 20px;
  right: 28px;
  z-index: 2;
  width: 110px;
  height: 72px;
  opacity: 0.35;
  background-image: radial-gradient(circle, #b8c9dc 2px, transparent 2px);
  background-size: 13px 13px;
  pointer-events: none;
}
.login-deco-dots-bottom {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 90px;
  height: 60px;
  opacity: 0.3;
  background-image: radial-gradient(circle, #b8c9dc 2px, transparent 2px);
  background-size: 13px 13px;
  pointer-events: none;
}

/* Decorative leaves bottom-right */
.login-deco-leaves {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 1;
  width: 200px;
  height: 150px;
  opacity: 0.45;
  pointer-events: none;
}

/* ── Left brand panel ── */
.login-brand {
  padding: 36px 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.login-brand-logo {
  width: 110px;
  height: auto;
  margin-bottom: 10px;
}

.login-brand-name {
  font-family: var(--font-brand);
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
}
.login-brand-name .jana { color: var(--blue); }
.login-brand-name .chetana { color: var(--green); }

.login-brand-sub {
  text-align: center;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 8px 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}
.login-brand-sub::before,
.login-brand-sub::after {
  content: '';
  flex: 0 0 36px;
  height: 2px;
  background: var(--blue);
}

.login-brand-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  font-size: 0.7rem;
  color: var(--navy);
  margin-bottom: 24px;
}
.login-brand-values span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
}
.login-brand-values span + span {
  border-left: 1px solid #c5d4e3;
}
.login-brand-values i { font-size: 0.78rem; }
.login-brand-values i.icon-green { color: var(--green); }
.login-brand-values i.icon-blue { color: var(--blue); }

/* Circular photo */
.login-brand-photo-wrap {
  position: relative;
  width: 300px;
  height: 300px;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.login-brand-photo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 6px solid transparent;
  border-right-color: var(--green);
  border-bottom-color: var(--green);
  transform: rotate(-30deg);
  z-index: 2;
  pointer-events: none;
}
.login-brand-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 0 12px 40px rgba(6, 43, 99, 0.12);
}

/* Service features bar */
.login-features-bar {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  background: var(--white);
  border-radius: 14px;
  padding: 14px 10px;
  box-shadow: 0 4px 20px rgba(6, 43, 99, 0.08);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 460px;
  margin-bottom: 16px;
}
.login-feature {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  text-align: center;
}
.login-feature + .login-feature {
  border-left: 1px solid #e8eef4;
}
.login-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.login-feature-icon.green {
  background: var(--green-pale);
  color: var(--green);
}
.login-feature-icon.blue {
  background: #e8f0fa;
  color: var(--blue);
}
.login-feature-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

/* Bottom landscape */
.login-brand-landscape {
  width: 100%;
  margin-top: auto;
  line-height: 0;
  pointer-events: none;
}
.login-brand-landscape svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Right form panel ── */
.login-form-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px 32px;
  position: relative;
  z-index: 2;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: 24px;
  padding: 36px 32px 28px;
  box-shadow: 0 12px 48px rgba(6, 43, 99, 0.1);
  border: 1px solid rgba(216, 227, 239, 0.8);
}

.login-form-header {
  text-align: center;
  margin-bottom: 28px;
}
.login-form-header .staff-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f0fa, #d4e6f7);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin: 0 auto 14px;
  box-shadow: 0 4px 16px rgba(0, 87, 168, 0.12);
}
.login-form-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.2;
}
.login-form-title .staff { font-family: var(--font-brand); color: var(--blue); }
.login-form-title .login-word { font-family: var(--font-brand); color: var(--green); }
.login-form-title-underline {
  width: 36px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin: 6px auto 10px;
}
.login-form-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap i.field-icon {
  position: absolute;
  left: 14px;
  color: var(--blue);
  font-size: 0.88rem;
  pointer-events: none;
}
.input-wrap input {
  width: 100%;
  padding: 13px 42px 13px 40px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 0.88rem;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}
.input-wrap input::placeholder { color: #a0aec0; }
.input-wrap input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 87, 168, 0.1);
}
.input-wrap .toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 0.88rem;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 0.82rem;
}
.form-row label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 400;
}
.form-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
}
.form-row a { color: var(--blue); font-weight: 600; }

.btn-login {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background 0.2s, transform 0.15s;
}
.btn-login:hover { background: #041e47; transform: translateY(-1px); }

.login-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 18px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 500;
}
.login-or::before,
.login-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-branch {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--green-pale);
  color: var(--green);
  border: 1.5px solid rgba(46, 155, 37, 0.25);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-branch:hover {
  background: #dff0df;
  text-decoration: none;
}
.btn-branch-hint {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.login-secure {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  max-width: 420px;
}
.login-secure-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #1a6fc4);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 87, 168, 0.2);
}
.login-secure-text strong {
  display: block;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 700;
}
.login-secure-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.login-error {
  background: #fff3f3;
  border: 1px solid #ffcdd2;
  color: #c62828;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  margin-bottom: 16px;
}

.back-home {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.back-home a { color: var(--blue); font-weight: 500; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .login-page { grid-template-columns: 1fr; }
  .login-brand {
    padding: 28px 24px 0;
    border-bottom: 1px solid #e8eef4;
  }
  .login-brand-photo-wrap {
    width: 240px;
    height: 240px;
  }
  .login-features-bar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
  }
  .login-feature + .login-feature { border-left: none; }
  .login-feature {
    flex: 0 0 calc(50% - 6px);
    border: 1px solid #e8eef4;
    border-radius: 10px;
    padding: 10px 6px;
  }
  .login-form-panel { padding: 32px 20px 40px; }
  .login-secure { justify-content: center; }
}

@media (max-width: 480px) {
  .login-brand-values { flex-direction: column; gap: 6px; }
  .login-brand-values span + span { border-left: none; }
  .login-card { padding: 26px 20px 22px; border-radius: 18px; }
  .login-feature { flex: 0 0 100%; }
}
