/* JanaChetana Admin Login Panel */
:root {
  --green: #2E9B25;
  --green-light: #e8f5e9;
  --blue: #0057A8;
  --navy: #062B63;
  --text: #1a2b3c;
  --text-muted: #6b7c93;
  --border: #d8e3ef;
  --white: #ffffff;
  --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(--white);
  -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;
}

/* Decorative dots top-right */
.login-deco-dots {
  position: absolute; top: 24px; right: 24px; z-index: 2;
  width: 120px; height: 80px; opacity: 0.45;
  background-image: radial-gradient(circle, var(--blue) 2px, transparent 2px);
  background-size: 14px 14px;
}

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

/* Left brand panel */
.login-brand {
  background: linear-gradient(160deg, #f4faf4 0%, #eef6fb 100%);
  padding: 40px 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border-right: 1px solid #e8eef4;
}

.login-brand-photo-wrap {
  width: 100%; max-width: 380px; margin-bottom: 20px;
  position: relative;
}
.login-brand-photo {
  width: 100%; border-radius: 0 80px 0 80px;
  object-fit: cover; height: 200px;
  border: 4px solid var(--green);
  box-shadow: 0 8px 24px rgba(46,155,37,0.15);
}
.login-brand-photo-curve {
  position: absolute; bottom: -8px; left: -8px; right: -8px; height: 20px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: 0 0 40px 40px; opacity: 0.3;
}

.login-brand-logo {
  width: 140px; height: auto; margin: 16px auto 12px;
}
.login-brand-name {
  font-family: var(--font-brand);
  font-size: 1.75rem; font-weight: 800; text-align: center; line-height: 1.2;
}
.login-brand-name .jana { color: var(--blue); }
.login-brand-name .chetana { color: var(--green); }
.login-brand-sub {
  text-align: center; font-size: 0.62rem; font-weight: 700;
  color: var(--blue); letter-spacing: 0.08em; text-transform: uppercase;
  margin: 6px 0 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.login-brand-sub::before,
.login-brand-sub::after {
  content: ''; flex: 1; max-width: 40px; height: 2px; background: var(--green);
}

.login-brand-values {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px;
  font-size: 0.72rem; color: var(--navy); margin-bottom: 14px;
}
.login-brand-values span {
  display: inline-flex; align-items: center; gap: 5px;
}
.login-brand-values i { color: var(--blue); font-size: 0.8rem; }
.login-brand-values i.green { color: var(--green); }

.login-brand-quote {
  text-align: center; font-size: 0.78rem; font-style: italic;
  color: var(--navy); max-width: 340px; line-height: 1.5;
  padding: 10px 16px; border-top: 1px solid rgba(46,155,37,0.25);
  border-bottom: 1px solid rgba(46,155,37,0.25);
}
.login-brand-quote i { color: var(--green); font-size: 0.7rem; }

.login-brand-copy {
  margin-top: auto; padding-top: 20px;
  font-size: 0.68rem; color: var(--text-muted); text-align: center;
}

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

.login-form-header {
  text-align: center; margin-bottom: 24px;
}
.login-form-header .shield-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #1a6fc4);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin: 0 auto 14px;
  box-shadow: 0 6px 20px rgba(0,87,168,0.25);
}
.login-form-title {
  font-size: 1.65rem; font-weight: 800; margin-bottom: 6px;
}
.login-form-title .admin { font-family: var(--font-brand); color: var(--navy); }
.login-form-title .login-word { color: var(--green); }
.login-form-sub {
  font-size: 0.88rem; color: var(--text-muted);
}

.login-card {
  width: 100%; max-width: 400px;
  background: var(--white);
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 8px 32px rgba(6,43,99,0.1);
  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;
}
.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-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-login:hover { background: #041e47; transform: translateY(-1px); }

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

.btn-staff {
  width: 100%; padding: 12px; border-radius: 10px;
  background: var(--green-light); color: var(--green);
  border: 1.5px solid rgba(46,155,37,0.3);
  font-size: 0.88rem; font-weight: 600; font-family: var(--font);
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; transition: background 0.2s;
}
.btn-staff:hover { background: #d4edd5; text-decoration: none; }

.login-secure {
  margin-top: 22px; text-align: center;
}
.login-secure i { color: var(--green); font-size: 1.1rem; margin-bottom: 4px; }
.login-secure strong { display: block; color: var(--green); font-size: 0.88rem; }
.login-secure span { font-size: 0.75rem; color: var(--text-muted); }

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

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

/* Responsive */
@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-brand { padding: 28px 24px; border-right: none; border-bottom: 1px solid #e8eef4; }
  .login-brand-photo { height: 160px; }
  .login-brand-logo { width: 100px; }
  .login-brand-copy { margin-top: 16px; }
  .login-form-panel { padding: 32px 20px 40px; }
}

@media (max-width: 480px) {
  .login-brand-values { flex-direction: column; align-items: center; }
  .login-card { padding: 22px 18px; }
}
