:root {
  --color-bg: #ffffff;
  --color-surface: #f8f9fa;
  --color-muted: #e9ecef;
  --color-primary: #6f42c1; /* Purple */
  --color-secondary: #fd7e14; /* Orange */
  --color-accent: #20c997; /* Light Green */
  --color-text: #000000; /* Black text */
  --color-text-muted: #6c757d; /* Grey */
  --color-border: #dee2e6;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --space-1: 8px;
  --space-2: 5px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;

  --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* ===== Base ===== */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  font-family:
    "Poppins",
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Inter,
    Helvetica,
    Arial;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== Two-Half Layout ===== */
.split-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}
.left-half {
  flex: 1;
  background: linear-gradient(135deg, #fff9ec 0%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-5);
  color: #fff;
  position: relative;
}
.left-half::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>')
    repeat;
  background-size: 30px 30px;
  opacity: 0.3;
}
.government-bar {
  background: #cccccc;
  width: 100%;
  padding: var(--space-2) var(--space-3);
  text-align: center;
  font-weight: 432;
  color: black;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  font-size: 0.9rem;
}
.logo-container {
  z-index: 1;
  text-align: center;
  margin-bottom: var(--space-4);
}
.logo {
  /*max-height: 80px;*/
  width: auto;
  margin-bottom: 3rem;
}
.brand-title {
  font-size: 2rem;
  color: #000000;
  font-weight: 700;
  margin: 0 0 var(--space-2) 0;
  /*text-shadow: 0 2px 4px rgba(0,0,0,0.3);*/
}
.brand-subtitle {
  font-size: 1.1rem;
  color: #000000;
  font-weight: 800;
  margin: 0;
  opacity: 0.9;
  line-height: 27px;
}
.left-content {
  z-index: 1;
  max-width: 400px;
  text-align: center;
}
.left-content p {
  font-size: 1.1rem;
  color: #000000;
  line-height: 1.6;
  margin: var(--space-3) 0;
}

.right-half {
  flex: 1;
  background: #7a293e;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-5);
}

/* ===== Login Card ===== */
.login-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  padding: var(--space-5);
  max-width: 400px;
  width: 100%;
  animation: slideIn 0.5s ease-out;
}
.login-card h2 {
  font-size: 1.75rem;
  margin-bottom: var(--space-4);
  text-align: center;
  color: var(--color-primary);
  font-weight: 600;
}
.user-avatar {
  width: 70px;
  height: 70px;
  background: #ffffff00;
  border-radius: 50%;
  margin: 0 auto var(--space-3);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  color: var(--color-primary);
  /*border: 2px solid var(--color-border);*/
}

/* ===== Form ===== */
.form-group {
  position: relative;
  margin-bottom: var(--space-3);
}
.form-group .feather {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  line-height: 1;
  color: var(--color-text-muted);
  pointer-events: none;
}
select.form-control {
    padding: 0.8rem 0.75rem 0.8rem 1rem;
}
.form-control {
  background-color: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.8rem 0.75rem 0.8rem 3rem;
  border-radius: var(--radius-md);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.form-control::placeholder {
  color: var(--color-text-muted);
}
.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.18);
  outline: none;
}

.form-check-input {
  border-radius: 4px;
  border: 1px solid var(--color-border);
}
.form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}
.form-check-label {
  color: var(--color-text);
  font-weight: 500;
}

.forgot-password {
  text-align: right;
  margin-bottom: var(--space-2);
  font-size: 0.9rem;
}
.forgot-password a {
  color: var(--color-primary);
  text-decoration: none;
}
.forgot-password a:hover {
  text-decoration: underline;
}
.footer-text {
  color: #000000;
}

/* ===== Buttons ===== */
.btn-primary {
  background: #48e085;
  color: #fff;
  border: 2px solid #fcebbc;
  border-radius: var(--radius-md);
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.12s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(111, 66, 193, 0.2);
  background-color: #5a32a3;
}

/* ===== Alerts ===== */
.alert {
  border-radius: var(--radius-md);
}

/* ===== Animations ===== */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .split-container {
    flex-direction: column;
  }
  .left-half,
  .right-half {
    flex: none;
    min-height: 50vh;
  }
  .left-half {
    padding: var(--space-4);
  }
  .right-half {
    padding: var(--space-4);
  }
  .brand-title {
    font-size: 1.5rem;
  }
  .left-content p {
    font-size: 1rem;
  }
}

:root {
  --primary-navy: #000080;
  --accent-saffron: #ff9933;
  --accent-green: #138808;
  --light-bg: #f8f9fa;
  --glass-white: rgba(255, 255, 255, 0.9);
  --shadow-sm:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--light-bg);
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
}

.split-container {
  display: flex;
  height: 100vh;
  width: 100%;
}

/* Left Section: Hero */
.hero-section {
  flex: 1;
  background:
    linear-gradient(rgba(0, 0, 128, 0), rgba(0, 0, 128, 0.7)),
    url("../images/HQ wcd.png");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  color: white;
  position: relative;
}

/* If image doesn't exist, fallback to a clean gradient */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-navy) 0%, #1e3a8a 100%);
  z-index: -1;
}

.brand-glass {
  background: rgba(255, 255, 255, 0.27);
  backdrop-filter: blur(5px);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  max-width: 500px;
  animation: fadeInUp 1s ease-out;
  color: #000;
}

.hero-logo {
  /* width: 120px; */
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.brand-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.brand-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.9;
}

/* Right Section: Login */
.login-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  padding: 2rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
  animation: fadeInRight 0.8s ease-out;
}

.card-header-custom {
  margin-bottom: 2.5rem;
  text-align: center;
}

.card-header-custom h2 {
  /* font-weight: 700; */
  color: #d8251e;
  margin-bottom: 0.5rem;
}

.card-header-custom p {
  color: #64748b;
  font-size: 0.95rem;
}

/* Form Styling */
.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}

.form-control {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 4px rgba(0, 0, 128, 0.05);
}

.input-group-text {
  background: none;
  border: 1px solid #e2e8f0;
  border-right: none;
  border-radius: 12px 0 0 12px;
  color: #94a3b8;
}

.input-group .form-control {
  border-left: none;
  border-radius: 0 12px 12px 0;
}

.btn-primary {
  background: #d8251e;
  border: none;
  border-radius: 12px;
  padding: 0.8rem;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: #28a745;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
}

/* Indian Accents */
.top-accent {
  height: 4px;
  width: 100%;
  background: linear-gradient(
    to right,
    #d8251e 33.33%,
    #d8251e 33.33%,
    #d8251e 66.66%,
    #d8251e 66.66%
  );
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
  body {
    overflow: auto;
    height: auto;
  }

  .split-container {
    flex-direction: column;
    height: auto;
  }

  .hero-section {
    padding: 4rem 1.5rem;
    min-height: 400px;
  }

  .login-section {
    padding: 3rem 1.5rem;
  }

  .brand-title {
    font-size: 2rem;
  }
}

.alert {
  border-radius: 12px;
  font-size: 0.9rem;
  border: none;
  box-shadow: var(--shadow-sm);
}
