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

body.login-custom-body {
  margin: 0;
  padding: 0;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  background: #f5f6fa;
  min-height: 100vh;
  overflow-x: hidden;
}

.login-custom-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

.login-custom-left {
  flex: 1.5;
  /* image lives at main_app/static/assests/AEH.png -> served as /static/assests/AEH.png */
  background: url('../AEH.png') no-repeat center center;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.login-custom-overlay {
  background: rgba(30, 40, 80, 0.65);
  color: #fff;
  width: 100%;
  padding: 40px 40px 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.placement-stats {
  margin-bottom: 40px;
}

.batch-row {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.batch-title {
  font-weight: bold;
  color: #000272;
  margin-right: 8px;
}
.stats-list {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.stat {
  background: #fff;
  color: #1e2850;
  border-radius: 6px;
  padding: 2px 10px;
  font-weight: 600;
  font-size: 1rem;
  margin-right: 5px;
}
.company {
  font-size: 0.9em;
  color: #007bff;
  font-weight: 500;
  margin-left: 3px;
}
.placement-summary {
  margin: 18px 0 18px 0;
  font-size: 1.1rem;
}
.placement-title {
  color: #000a73;
  font-weight: bold;
  margin-right: 8px;
}
.placement-detail {
  margin-right: 18px;
}

.welcome-section {
  margin-top: auto;
  background: rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 24px 24px 18px 24px;
}
.welcome-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}
.welcome-desc {
  font-size: 1.1rem;
  margin-bottom: 18px;
  color: #f8f8f8;
}
.vision-mission {
  font-size: 1rem;
}
.vision, .mission {
  margin-bottom: 8px;
  color: #ffe082;
}

.login-custom-right {
  flex: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 400px;
  box-shadow: -2px 0 16px 0 rgba(30,40,80,0.08);
  position: relative;
}
.aeh-logo {
  text-align: center;
  margin-bottom: 30px;
}
.aeh-logo-img {
  display: block;
  margin: 0 auto 12px auto;
  max-width: 110px;
  height: auto;
}
.aeh-main {
  font-size: 4rem;
  font-weight: 900;
  color: #000872;
  letter-spacing: 2px;
  line-height: 1;
}
.aeh-sub {
  display: block;
  font-size: 2rem;
  color: #0b7200;
  font-family: 'Dancing Script', cursive, sans-serif;
  margin-top: -10px;
  font-weight: 400;
}
.aeh-tagline {
  display: block;
  font-size: 0.9rem;
  color: #4b5563;
  margin-top: 6px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.login-form-section {
  width: 100%;
  max-width: 370px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(30,40,80,0.08);
  padding: 32px 28px 24px 28px;
}
.aeh-login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
}
.login-input {
  height: 48px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 1.1rem;
  padding: 0 16px;
  margin-bottom: 0;
  background: #f8fafc;
  transition: border 0.2s;
}
.login-input:focus {
  border: 1.5px solid #1976d2;
  outline: none;
  background: #fff;
}
.login-btn {
  height: 48px;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  background: #1976d2;
  border: none;
  color: #fff;
  margin-bottom: 10px;
  transition: background 0.2s;
}
.login-btn:hover {
  background: #125ea2;
}
.login-btn-alt {
  display: block;
  width: 100%;
  height: 48px;
  line-height: 48px;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 0;
  padding: 0;
  border: none;
  background: #0b7200;
  color: #fff !important;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}
.login-btn-alt:hover {
  background: #095a00;
  color: #fff !important;
}
.login-btn-alt:active {
  background: #074800;
  color: #fff !important;
}
.login-error-btn {
  margin: 0 0 10px 0;
  padding: 12px 12px;
  line-height: 1.3;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  background-color: #dc2626;
  border: none;
  color: #ffffff;
}
@media (max-width: 900px) {
  .login-custom-container {
      display: grid;
      grid-template-rows: auto auto;
  }
  .login-custom-left, .login-custom-right {
      min-width: 100%;
  }
  .login-custom-left {
      min-height: 50vh;
  }
  .login-custom-right {
      /* Soft, elegant tint over background image for mobile */
      background:
          linear-gradient(
              180deg,
              rgba(15, 25, 60, 0.75),
              rgba(10, 20, 45, 0.55)
          ),
          url('../AEH.png') center top no-repeat;
      background-size: cover;
      box-shadow: none;
      grid-row: 1;
      min-height: 100vh;
      padding-top: 60px;
      padding-left: 24px;
      padding-right: 24px;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: stretch;
  }
  .aeh-logo {
      text-align: left;
      margin-bottom: 24px;
  }
  .aeh-logo-img {
      max-width: 64px; /* smaller logo on mobile like reference */
  }
  .aeh-main {
      font-size: 2.6rem;
      letter-spacing: 1px;
      color: #ffffff;
      text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
  }
  .aeh-sub {
      font-size: 1.3rem;
      margin-top: -4px;
      color: #ffe082;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
  }
  .aeh-tagline {
      color: #ffffff;
  }
  .login-form-section {
      margin-top: 40px;
      max-width: 100%;
      background: rgba(255, 255, 255, 0.98);
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
      border-radius: 18px;
  }

}
@media (max-width: 600px) {
  .login-form-section {
      padding: 18px 8px 12px 8px;
      max-width: 98vw;
  }
  .aeh-logo {
      margin-bottom: 10px;
  }
  .login-custom-overlay {
      padding: 18px 8px 0 8px;
  }
}

@media (max-width: 480px) {
  .aeh-main {
      font-size: 2.1rem;
      letter-spacing: 0.5px;
  }
  .aeh-sub {
      font-size: 1.1rem;
  }
  .aeh-tagline {
      color: #ffffff;
  }
  .welcome-section h2 {
      font-size: 1.4rem;
  }
  .welcome-desc {
      font-size: 0.95rem;
  }
  .vision-mission {
      font-size: 0.9rem;
  }
  .login-input,
  .login-btn,
  .login-btn-alt {
      font-size: 1rem;
      height: 44px;
      line-height: 44px;
  }
}
