/* JanaChetana Branch Login */
:root {
  --green: #2E9B25;
  --green-dark: #2E7D32;
  --green-light: #E8F5E9;
  --blue: #0057A8;
  --navy: #004080;
  --text: #1a2b3c;
  --text-muted: #6b7c93;
  --border: #d8e3ef;
  --white: #ffffff;
  --bg: #f4f7fa;
  --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(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.branch-login-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #eef4f8 55%, #e8f2ea 100%);
}

/* Decorative dot patterns */
.deco-dots {
  position: absolute;
  width: 140px;
  height: 100px;
  opacity: 0.35;
  background-image: radial-gradient(circle, var(--blue) 2px, transparent 2px);
  background-size: 14px 14px;
  pointer-events: none;
  z-index: 1;
}
.deco-dots-tr { top: 20px; right: 24px; }
.deco-dots-bl { bottom: 100px; left: 20px; }

.branch-login-inner {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 40px 24px;
  position: relative;
  z-index: 2;
}

/* Landscape footer */
.branch-landscape {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}
.branch-landscape img {
  width: 100%;
  height: auto;
  min-height: 80px;
  object-fit: cover;
}

/* Left brand panel */
.branch-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 24px 40px;
}

.branch-brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  align-self: flex-start;
  margin-bottom: 18px;
}
.branch-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}
.branch-brand-name {
  font-family: var(--font-brand);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.15;
}
.branch-brand-name .jana { color: var(--navy); }
.branch-brand-name .chetana { color: var(--green); }
.branch-brand-sub {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.branch-tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 22px;
  text-align: center;
}
.branch-tagline span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.branch-tagline i { color: var(--green); font-size: 0.78rem; }
.branch-tagline .sep { color: #b0bec5; font-weight: 400; }

.branch-photo-wrap {
  margin-bottom: 24px;
}
.branch-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--green);
  box-shadow: 0 12px 36px rgba(46, 155, 37, 0.18);
}

.branch-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 520px;
}
.feature-card {
  background: var(--white);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(6, 43, 99, 0.07);
  border: 1px solid rgba(216, 227, 239, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.feature-card span {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.feature-icon.icon-green { background: var(--green-light); color: var(--green); }
.feature-icon.icon-blue { background: #e3f0fb; color: var(--blue); }

/* Right form panel */
.branch-form-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 60px;
  position: relative;
}

.deco-leaves {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 160px;
  height: 120px;
  opacity: 0.4;
  pointer-events: none;
}

.branch-form-header {
  text-align: center;
  margin-bottom: 22px;
}
.building-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #1a6fc4);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin: 0 auto 12px;
  box-shadow: 0 6px 20px rgba(0, 87, 168, 0.25);
}
.branch-form-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.branch-form-title .branch-word {
  font-family: var(--font-brand);
  color: var(--navy);
}
.branch-form-title .login-word { color: var(--green); }

.title-accent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
.title-accent::before,
.title-accent::after {
  content: '';
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green));
  border-radius: 2px;
}
.title-accent::after {
  background: linear-gradient(90deg, var(--green), transparent);
}
.title-accent span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.branch-form-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 340px;
  margin: 0 auto;
}

.branch-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: 0 10px 40px rgba(6, 43, 99, 0.12);
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap i.field-icon {
  position: absolute;
  left: 14px;
  color: var(--blue);
  font-size: 0.9rem;
  pointer-events: none;
}
.input-wrap input {
  width: 100%;
  padding: 12px 42px 12px 40px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}
.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.9rem;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 0.82rem;
}
.form-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  cursor: pointer;
}
.form-row a { color: var(--blue); font-weight: 500; }

.btn-branch-login {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  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: 8px;
  transition: background 0.2s, transform 0.15s;
}
.btn-branch-login:hover {
  background: #003366;
  transform: translateY(-1px);
}

.branch-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.branch-or::before,
.branch-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-staff {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--green-light);
  color: var(--green-dark);
  border: 1.5px solid rgba(46, 155, 37, 0.25);
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-staff:hover {
  background: #d4edd5;
  text-decoration: none;
}
.btn-staff > i {
  font-size: 1.1rem;
  color: var(--green);
}
.btn-staff-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.btn-staff-text strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-dark);
}
.btn-staff-text small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--green);
  opacity: 0.85;
}

.branch-secure {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.branch-secure > i {
  color: var(--blue);
  font-size: 1.3rem;
}
.branch-secure strong {
  display: block;
  color: var(--green);
  font-size: 0.88rem;
}
.branch-secure span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

/* Responsive */
@media (max-width: 960px) {
  .branch-login-inner {
    grid-template-columns: 1fr;
    padding: 24px 20px 100px;
  }
  .branch-brand-header { align-self: center; }
  .branch-features {
    grid-template-columns: repeat(2, 1fr);
    max-width: 360px;
  }
  .branch-photo { width: 240px; height: 240px; }
  .branch-form-panel { padding-bottom: 40px; }
}

@media (max-width: 480px) {
  .branch-tagline { flex-direction: column; }
  .branch-tagline .sep { display: none; }
  .branch-features { grid-template-columns: 1fr 1fr; gap: 8px; }
  .branch-card { padding: 22px 18px; }
  .deco-dots { width: 80px; height: 60px; }
}
