/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Scoped Styles */
.uplf {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  /* background-color: #e6ecfa; */
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

.uplf h1, .uplf h2, .uplf h3,
.uplf h4, .uplf h5, .uplf h6 {
  <!-- margin-bottom: 15px; -->
  font-weight: 600;
}

.uplf p {
  margin-bottom: 15px;
}

.uplf a {
  color: #3366CC;
  text-decoration: none;
}

.uplf a:hover {
  text-decoration: underline;
}

/* Full-width login container */
.uplf.container {
  max-width: 1500px;
  width: 100%;
  margin: auto;
  padding: 40px 20px;
}

/* Help block spacing */
.uplf .help-block {
  color: #d9534f;
  font-size: 0.9em;
  margin-top: 5px;
  display: block;
}

/* Form Group Adjustment */
.uplf .form-group {
  margin-bottom: 15px;
  position: relative;
}

/* Error Input Highlight */
.uplf .has-error input {
  border-color: #d9534f;
  background-color: #f2dede;
}

.uplf .has-error .help-block {
  color: #d9534f;
}

/* Navigation */
.uplf nav {
  background-color: #3366CC;
  padding: 15px;
  border-radius: 12px;
}

.uplf nav ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
}

.uplf nav li {
  margin: 0 10px;
}

.uplf nav a {
  color: #fff;
  font-weight: bold;
}

.uplf nav a:hover {
  text-decoration: underline;
}

/* Form Styles */
.uplf form {
  background-color: #E5EDFF;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.uplf input[type="text"],
.uplf input[type="email"],
.uplf input[type="password"],
.uplf textarea,
.uplf select {
  width: 100%;
  /* padding: 12px; */
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 12px;
  background-color: #fff;
}

.uplf input[type="submit"]{
  background-color: #14509f;
  color: #fff;
  border: none;
  /* padding: 0px 30px 0px 30px; */
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.uplf input[type="submit"]:hover {
  background-color: #02367a;
}
.uplf input[type="reset"] {
  background-color: #4CAF50;
  color: #fff;
  border: none;
  
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.uplf input[type="reset"]:hover {
  background-color: #45A049;
}

/* Footer */
.uplf footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  background-color: #3366CC;
  color: #fff;
  border-radius: 12px;
}

/* Two-column card layout with enforced Flexbox */
.uplf.card {
  display: flex !important; /* Force flex display */
  flex-direction: row !important; /* Ensure horizontal layout */
  flex-wrap: nowrap !important; /* Prevent wrapping */
  gap: 20px; /* Space between columns */
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  background-color: #fff;
  box-sizing: border-box;
}

/* Left column: Login form */
.uplf.card .left-column {
    flex: 1 1 50% !important; /* Flex-grow, shrink, basis */
    max-width: 50% !important; /* Limit width */
    padding: 0px;
    box-sizing: border-box;
}


/* Right column */
.uplf.card .right-column {
  flex: 1 1 60% !important;
  max-width: 60% !important;
  padding: 40px 40px 20px 40px;
  background-color: #E5EDFF;
  background-color: rgba(255, 255, 255, 0); /* Adjust last value for transparency */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  color: #fff; /* Ensure text is readable over the background */
  box-sizing: border-box;
  position: relative;
  
}
.welcome-left {
    flex: 1 1 40% !important; /* Flex-grow, shrink, basis */
    max-width: 40% !important; /* Limit width */
    padding:  40px 40px 20px 40px;
    box-sizing: border-box;
    background-image: url('images/wheat-7076817_1280Crop3.png'); /* Replace with your actual image path */
    background-repeat: no-repeat;
    background-size: 100% 100%;   /* ✅ Shows the entire image */
    background-position: center;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.welcome-right {
    flex: 1 1 60% !important; /* Flex-grow, shrink, basis */
    max-width: 60% !important; /* Limit width */
    padding:  40px 40px 20px 40px;
    box-sizing: border-box;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* Optional: Overlay to darken or lighten the image */
.uplf.card .right-column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent; /* Keeps original image lightness */
  border-radius: 12px;
  z-index: 1;
}

/* Ensure content stays above the overlay */
.uplf.card .right-column * {
  position: relative;
  z-index: 2;
}

/* Full-width for inputs and buttons */
.uplf.form-control, .uplf.button {
  width: 100%;
}

/* Right column link styles */
.uplf.card .right-column a {
  /* color: #FFD700; */ /* Bright yellow for visibility */
  text-decoration: none;
  transition: color 0.3s ease;
}
.left-column, .right-column {
    backdrop-filter: blur(5px); /* Blurred glass effect */
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Hover effect */
.uplf.card .right-column a:hover {
  color: #FFA500; /* Orange on hover */
  text-decoration: underline;
}
/* Add a slight lift on hover */
.uplf.card .left-column:hover, 
.uplf.card .right-column:hover,
.welcome-right:hover, .welcome-left:hover{
  transform: translateY(-5px); /* Lifts up slightly */
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2); /* Stronger shadow */
}

.minYL {
    color: white;
}

/* Unified card with a left-side background image */
.uplf.card.unified {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  padding: 40px;
  border-radius: 16px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: auto;
  position: relative;
  overflow: hidden;
}

/* Left-side background image */
.uplf.card.unified::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-image: url('images/wheat-7076817_1280Crop3.png'); /* Replace with your actual image path */
  background-size: cover;
  background-position: center;
  border-radius: 16px 0 0 16px; /* Rounded corners on the left */
}

/* Ensuring text content stays on the right */
.uplf.card.unified .content {
  flex: 1;
  padding-left: 50%; /* Pushes content to the right side */
  position: relative;
  z-index: 1;
}

/* Style links */
.uplf.card.unified a {
  color: #3366CC;
  font-weight: bold;
  text-decoration: none;
}

.uplf.card.unified a:hover {
  color: #14509f;
  text-decoration: underline;
}

.autocomplete-results {
    border: 1px solid #ccc;
    background-color: #fff;
    max-height: 150px;
    overflow-y: auto;
    position: absolute;
    z-index: 1000;
}

.autocomplete-results .institution-option {
    padding: 8px;
    cursor: pointer;
}

.autocomplete-results .institution-option:hover {
    background-color: #f0f0f0;
}

/* address autocomplete */
.address-results {
   /*  border: 1px solid #ccc; */
    background: white;
    position: absolute;
    z-index: 999;
    max-height: 150px;
    overflow-y: auto;
    width: 95%;
}
.address-results .result {
    padding: 5px;
    cursor: pointer;
}
.address-results .result:hover {
    background: #eef;
}




/* Responsive tweak for smaller screens */
@media (max-width: 768px) {
  .uplf.card {
    flex-direction: column !important;
  }

  .uplf.card .left-column,
  .uplf.card .right-column {
    max-width: 100% !important;
    width: 100% !important;
    margin-bottom: 20px;
  }
  .uplf.card .right-column a, .minYL {
      color:black; /* Bright yellow for visibility */
      text-decoration: none;
      transition: color 0.3s ease;
    }
}


