*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white: #ffffff;
  --bg-soft: #f5f7fa;
  --border: #dde3eb;
  --text: #1e293b;
  --text-muted: #64748b;
  --maroon: #7a0f1e;
  --maroon-light: #9a1b2e;
  --gold: #9a7b0a;
  --teal: #1da181;
  --teal-hover: #189473;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Noto Sans", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
}

.login-page {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* —— Left panel: clean PSU / govt portal —— */
.login-sidebar {
  flex: 0 0 40%;
  max-width: 520px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.india-strip {
  height: 3px;
  flex-shrink: 0;
  background: linear-gradient(
    90deg,
    #ff9933 0%,
    #ff9933 33.33%,
    #ffffff 33.33%,
    #ffffff 66.66%,
    #138808 66.66%,
    #138808 100%
  );
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px 18px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  width: 72px;
  height: auto;
  flex-shrink: 0;
  display: block;
}

.sidebar-header-text {
  min-width: 0;
}

.org-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.org-unit {
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
}

.org-badge {
  margin-top: 6px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

.sidebar-banner {
  margin: 0;
  padding: 16px 20px 0;
  line-height: 0;
  flex-shrink: 0;
}

.sidebar-banner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  border: 1px solid var(--border);
  border-radius: 2px;
}

.sidebar-vision {
  flex: 1;
  margin: 16px 20px 0;
  padding: 20px 22px;
  background: var(--bg-soft);
  border-left: 4px solid var(--maroon);
  border-radius: 0 2px 2px 0;
}

.sidebar-vision p {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.65;
  color: var(--text);
  text-align: center;
}

.sidebar-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 14px 24px 18px;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.footer-secure {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.45;
}

.footer-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--maroon-light);
}

.footer-copy {
  margin-top: 8px;
  font-size: 10px;
  color: #94a3b8;
}

/* —— Right: login form (unchanged) —— */
.login-main {
  flex: 1;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.login-form-wrap {
  width: 340px;
  max-width: 88%;
}

.login-form-wrap h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14.5px;
  font-weight: 400;
  color: #000000;
  margin-bottom: 32px;
}

.form-field {
  margin-bottom: 26px;
}

.form-field label {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.5px;
  font-weight: 400;
  color: #a0a0a0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.form-field input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #c8c8c8;
  padding: 6px 0 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #212121;
  background: transparent;
  outline: none;
}

.form-field input:focus {
  border-bottom-color: #757575;
}

.btn-sign-in {
  display: inline-block;
  margin-top: 4px;
  min-width: 108px;
  padding: 10px 28px;
  background-color: var(--teal);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  border: none;
  border-radius: 2px;
  cursor: pointer;
}

.btn-sign-in:hover {
  background-color: var(--teal-hover);
}

@media (max-width: 900px) {
  html,
  body {
    overflow: auto;
  }

  .login-page {
    flex-direction: column;
  }

  .login-sidebar {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .sidebar-banner img {
    max-height: 240px;
  }

  .login-main {
    padding: 48px 24px 56px;
  }
}
