.input-wrapper {
  position: relative;
}

.input-wrapper i.bi {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none; /* lock icon won’t block input clicks */
}

.input-wrapper i.bi-lock,
.input-wrapper i.bi-lock-fill,
.input-wrapper i.bi-person,
.input-wrapper i.bi-envelope,
.input-wrapper i.bi-building,
.input-wrapper i.bi-person-badge {
  left: 10px;
}

.input-wrapper .toggle-password {
  right: 10px;
  left: auto;
  pointer-events: auto; /* clickable */
}
:root {
  --primary-color: #2c5aa0;
  --secondary-color: #34a853;
  --accent-color: #fbbc05;
  --dark-color: #1a365d;
  --light-color: #f8f9fa;
  --gradient: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(rgba(44, 90, 160, 0.85), rgba(52, 168, 83, 0.85)),
    url("https://images.unsplash.com/photo-1556761175-5973dc0f32e7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  display: flex;
  max-width: 1000px;
  width: 100%;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------ Left Section ------------------ */
.login-left {
  flex: 1;
  background: var(--gradient);
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(30deg);
}

.logo-box {
  margin-bottom: 30px;
  text-align: center;
}

.logo-box img {
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

.welcome-text {
  margin-bottom: 30px;
}

.welcome-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.welcome-text p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.features-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.features-list li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1rem;
}

.features-list i {
  margin-right: 10px;
  background: rgba(255, 255, 255, 0.2);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------ Right Section ------------------ */
.login-right {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-card {
  width: 100%;
}

.login-card h2 {
  color: var(--dark-color);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

/* ------------------ Form Styling ------------------ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark-color);
  display: block;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 15px;
  color: #6c757d;
  font-size: 1.2rem;
  pointer-events: none;
  transition: color 0.3s;
}

.form-control {
  width: 100%;
  padding-left: 45px;
  height: 50px;
  border-radius: 10px;
  border: 2px solid #e1e5ee;
  transition: all 0.3s;
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
  outline: none;
}

.input-wrapper:focus-within i {
  color: var(--primary-color);
}

/* Custom select dropdown icon */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' class='bi bi-caret-down-fill' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658A.5.5 0 0 1 2.854 5h10.292a.5.5 0 0 1 .403.658l-4.796 5.482a.5.5 0 0 1-.806 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
}

/* ------------------ Buttons and Footer ------------------ */
.btn-login {
  background: var(--gradient);
  border: none;
  height: 50px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  margin-top: 10px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.forgot-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.forgot-link:hover {
  color: var(--secondary-color);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* ------------------ Security Notice ------------------ */
.security-notice {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  margin-top: 30px;
  border-left: 4px solid var(--accent-color);
}

.security-notice p {
  margin: 0;
  font-size: 0.9rem;
  color: #6c757d;
}

.security-notice i {
  color: var(--accent-color);
  margin-right: 10px;
}

/* ------------------ Responsive ------------------ */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    max-width: 500px;
  }

  .login-left {
    padding: 30px 20px;
  }

  .login-right {
    padding: 30px 20px;
  }

  .welcome-text h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .form-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .forgot-link {
    margin-top: 10px;
  }
}
