@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

:root {
  --primary-color: #4358a6;
  --primary-light: #5f78c8;
  --bg-color: #eef2f7;
  --card-bg: #ffffff;
  --text-color-dark: #343a40;
  --text-color-muted: #868e96;
  --border-subtle: #dee2e6;
  --input-bg-light: #f8f9fa;
  --shadow-lift: 0 15px 45px rgba(0, 0, 0, 0.1); 
  --white: #ffffff;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-color);
}

/* --- Background Geometry --- */
body::before {
  content: '';
  position: absolute;
  top: -150px;
  left: -150px;
  width: 600px;
  height: 600px;
  background: #4358a6fb;
  border-radius: 40% 60% 70% 30% / 50% 50% 50% 50%;
  z-index: 0;
  animation: pulse 10s infinite alternate;
}

body::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: #4358a6fb;
  border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%; 
  z-index: 0;
  animation: pulse 8s infinite reverse alternate;
}

@keyframes pulse {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.05) rotate(5deg); }
}

/* Main UI Container */
.login-wrapper {
  width: 100%;
  max-width: 950px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.login-card {
  background-color: #ffffff;
  width: 70%;
  border-radius: 24px;
  border: 2px solid #4358a6fb;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  display: flex;
  overflow: hidden;
  min-height: 420px;
}

/* Left Panel: Banner */
.welcome-col {
  flex: 1;
  background: linear-gradient(135deg, #384fa1fb 100%, #417dcc 0%);
  position: relative;
  padding: 30px 40px; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  overflow: hidden;
}

/* Geometric Background Details */
.circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, #4358a6fb 0%, #1b395e 100%);
}
.circle-1 {
  width: 340px;
  height: 340px;
  right: -80px;
  top: -60px;
}
.circle-2 {
  width: 220px;
  height: 220px;
  left: -40px;
  bottom: -40px;
}
.circle-3 {
  width: 200px;
  height: 200px;
  bottom: 60px;
  right: 40px;
  box-shadow: -10px 10px 30px rgba(0,0,0,0.15);
}

.welcome-content {
  position: relative;
  z-index: 2;icon
  max-width: 380px;
}

.welcome-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 2px;
}

.welcome-content p {
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0.75;
  font-weight: 300;
}

/* Right Panel: Sign In */
.form-col {
  flex: 1.1;
  padding: 40px 30px;
 
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #ffffff;
  z-index: 1;
}

.form-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #2b2b2b;
  margin-bottom: 2px;
  text-align: center;
}

.form-subtitle {
  font-size: 0.78rem;
  color: #7c7c7c;
  margin-bottom: 18px;
  text-align: center;
}

/* Form element alignment wrapper */
form {
  display: flex;
  flex-direction: column;
  width: 100%;
}


/* Checkbox Alignment Match */
.form-utilities {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 0.78rem;
  width: 82%;
  margin-left: auto;
  margin-right: auto;
}

.remember-me {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #555555;
}

.remember-me input {
  margin-right: 6px;
  accent-color: #1663be;
}

.forgot-link {
  color: #1663be;
  text-decoration: none;
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Action Button Resizing match */
.btn-primary-custom {
  width: 82%;            /* Matched down input field width sizes */
  padding: 11px;
  background-color: #11427c;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: center;
}

.btn-primary-custom:hover {
  background-color: #0a2f5a;
}

/* Responsiveness adjustments for mobile views */
@media (max-width: 868px) {
  body {
    overflow: auto;
  }
  .welcome-col {
    display: none;
  }
  .form-col {
    padding: 30px 20px;
  }
 
  .form-utilities,
  .btn-primary-custom {
    width: 100%; /* Spans back safely to fluid layout on mini phone devices */
  }
}
.image-col {
    /* Set the image using the URL provided */
    background-image: url('https://www.kindpng.com/picc/m/273-2738804_php-login-and-authentication-login-hd-png-download.png') !important;
    background-size: cover !important; /* Ensure the image covers the entire column */
    background-position: center !important; /* Center the image within the column */
   
   
    min-height: 320px !important; /* Ensure a minimum height for the column */
}
/* ✅ UNIFIED - Remove all old .input-group-custom blocks and replace with this */
.input-group-custom {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 12px;
  border: 1px solid #ced4da;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f6f9;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group-custom:focus-within {
  background-color: #ffffff;
  border-color: #4358a6;
  box-shadow: 0 0 0 3px rgba(67, 88, 166, 0.12);
}

/* Icon area */
.input-group-custom .input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px 0 14px;
  color: #4358a6;
  font-size: 1rem;
  flex-shrink: 0;
  pointer-events: none;
  /* Remove the old border-right here — divider is done via ::after */
  border-right: none;
}

/* The | vertical divider */
.input-group-custom .input-icon::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 18px;
  background: #ced4da;
  margin-left: 10px;
}

/* Inputs — NO absolute positioning */
.input-group-custom input,
.input-group-custom select {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 0.88rem;
  color: #333333;
  outline: none;
  /* Remove old padding-left: 45px — no longer needed */
}

.input-group-custom input::placeholder {
  color: #a0a5aa;
}

/* Select wrapper for custom arrow */
.select-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.select-wrapper select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  padding: 10px 32px 10px 12px;
  font-size: 0.88rem;
  color: #333333;
  outline: none;
  cursor: pointer;
}
.select-wrapper select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;        /* ← this was missing, fixes Firefox */
}
.select-wrapper select::-ms-expand {
  display: none !important;                /* ← fixes IE/Edge */
}
.select-wrapper::after {
  content: "\f078";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 12px;
  color: #4358a6;
  pointer-events: none;
  font-size: 11px;
}

/* Eye toggle — stays absolute but inside flex row, not the input */
.input-group-custom .toggle-btn-icon {
  background: none;
  border: none;
  color: #6c757d;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 12px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.input-group-custom .toggle-btn-icon:hover {
  color: #4358a6;
}
/* Hide image column on tablets and mobile */
@media (max-width: 768px) {
  .image-col {
    display: none !important;
  }

  .login-card {
    width: 100%;
    max-width: 420px;
  }

  .form-col {
    width: 100%;
    border-radius: 16px;
  }
}
