/* General Body Styles */
body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f7f6;
  height: 100vh;
  overflow: hidden;
}

/* Main Login Container - Flexbox */
.login-container {
  display: flex;
  height: 100%;
  width: 100%;
}

/* Left Panel: Branding & Info */
.login-info-panel {
  flex: 1;
  background: linear-gradient(rgba(36, 59, 85, 0.85), rgba(36, 59, 85, 0.95)),
    url("https://images.unsplash.com/photo-1554469384-e58fac166824?q=80&w=1974")
      no-repeat center center;
  background-size: cover;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px 50px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.login-info-panel .logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.login-info-panel .logo .fas {
  font-size: 40px;
  color: #4a90e2;
}

.login-info-panel .logo h1 {
  font-weight: 700;
  font-size: 2.5rem;
  margin: 0;
}

.login-info-panel .tagline {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.8);
}

.login-info-panel .feature-list p {
  font-size: 1rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.login-info-panel .feature-list .fas {
  color: #28a745;
  margin-right: 12px;
  font-size: 1.2rem;
}

.info-footer {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Right Panel: Login Form */
.login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 40px;
}

.login-card {
  width: 100%;
  max-width: 420px;
}

.login-card h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #243b55;
  margin-bottom: 10px;
}

.login-card .subtitle {
  color: #777;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
  display: block;
}

.input-group {
  position: relative;
}

.input-group .fas {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  transition: color 0.3s;
}

.form-control {
  height: 50px;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding-left: 45px; /* Space for the icon */
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
  outline: none;
}

.form-control:focus + .fas,
.input-group:focus-within .fas {
  color: #4a90e2;
}

/* Form Options: Remember Me & Forgot Password */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 0.9rem;
}
.form-check-label {
  font-weight: 400 !important;
}

.forgot-password {
  color: #4a90e2;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* Button Styles */
.btn-primary {
  background-color: #4a90e2;
  border-color: #4a90e2;
  padding: 15px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-primary:hover {
  background-color: #357abd;
  border-color: #357abd;
  transform: translateY(-2px);
}
.btn-primary:disabled {
  cursor: not-allowed;
  background-color: #6c9ed8;
}
.display-none {
  display: none !important;
}

/* Validation Styles */
.invalid-feedback {
  color: #dc3545;
  font-size: 0.875em;
  display: block;
  margin-top: 0.25rem;
}

.is-invalid {
  border-color: #dc3545 !important;
}

/* Responsive Design */
@media (max-width: 992px) {
  .login-container {
    flex-direction: column;
  }
  .login-info-panel {
    flex: 0 0 300px; /* Fixed height for the info panel on smaller screens */
    justify-content: center;
    text-align: center;
    padding: 20px;
  }
  .feature-list {
    display: none;
  }
  .login-form-panel {
    flex-grow: 1;
    align-items: flex-start;
    padding-top: 50px;
  }
}
