.devise-login-container {
    display: flex;
    max-width: 900px;
    margin: 50px auto;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .devise-login-box {
    flex: 1;
    padding: 40px;
    text-align: center;
    background: #ffffff;
  }
  
  .devise-login-box h2 {
    color: #028004;
    margin-bottom: 20px;
  }
  
  .devise-input-group {
    margin-bottom: 30px;
  }
  
  .devise-input-group input {
    width: 80%;
    max-width: 420px;
    margin: 0 auto 50px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    text-align: left;
  }

  /* Input with icon */
  .input-with-icon {
    position: relative;
  }


  .input-with-icon .input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    font-size: 16px;
  }

  .input-with-icon input {
    padding-left: 5px; /* make room for icon */
    width: 80%;
    max-width: 420px;
    margin: 0 auto 50px;
    box-sizing: border-box;
    text-align: left;
  }

/* Ensure input-with-icon wrapper constrains width and centers consistently */
.devise-input-group.input-with-icon {
  width: 80%;
  max-width: 420px;
  margin: 0 auto 10px;
  position: relative;
  box-sizing: border-box;
}

/* Make inputs inside the wrapper full-width of the wrapper */
.devise-input-group.input-with-icon input {
  width: 100% !important;
  margin: 0 !important;
  padding-left: 44px; /* base room for the left icon */
  box-sizing: border-box;
}

  /* Password feedback */
  .password-feedback { color: #666; font-size: 14px; }
  .password-feedback.match { color: #2b8a3e; }
  .password-feedback.mismatch { color: #d9534f; }

  /* password requirements checklist */
  .pw-requirements p { margin: 0 0 6px; font-weight: 600; }
  .pw-requirements ul { margin: 0; padding-left: 18px; }
  .pw-requirements li { margin: 2px 0; color: #666; }
  
  .devise-checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
  }
  
  .devise-forgot-password {
    margin-top: 10px;
    text-align: right;
  }
  
  .devise-forgot-password a {
    color: #028004;
    text-decoration: none;
    font-size: 14px;
  }
  
  .devise-actions {
    margin-top: 20px;
  }
  
  .devise-login-button {
    width: 100%;
    background: #028004;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .devise-login-button:hover {
    background: #142453;
  }
  
  .devise-register-link {
    margin-top: 20px;
    font-size: 14px;
  }
  
  .devise-register-link a {
    color: #028004;
    text-decoration: none;
  }

  /* Cancel account section */
  .detail-tile {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    text-align: left;
  }

  .detail-tile strong {
    color: #856404;
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
  }

  .detail-tile p {
    color: #856404;
    font-size: 14px;
    margin: 0 0 12px 0;
    line-height: 1.5;
  }

  .btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
  }

  .btn-danger:hover {
    background-color: #c82333;
  }

  .btn-danger:active {
    background-color: #bd2130;
  }
  
  .devise-info-box {
    flex: 1;
    padding: 40px;
    background: #f8f9fa;
    color: #333;
  }
  
  .devise-info-box h3 {
    color: #028004;
    margin-bottom: 15px;
  }

/* Phone field - treat it like any other input field, no special positioning */
.phone-field .devise-input-group {
  /* Same as other input groups - centered with proper width */
  margin-bottom: 22px;
  width: 80%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* Make intl-tel-input wrapper inline so flag and input are on same line */
.phone-field .devise-input-group .intl-tel-input,
.phone-field .devise-input-group .iti {
  display: block;
  width: 100%;
  position: relative;
  margin-bottom: 10px;
}

/* Position phone icon on the left */
.phone-field .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  color: #666;
}

/* Position flag/dial code selector inline */
.phone-field .iti__flag-container {
  position: absolute !important;
  left: 44px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 5 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.phone-field .iti__selected-flag {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 6px !important;
}

/* Style the phone input exactly like other inputs */
.phone-field .devise-input-group input[type="tel"],
#registration-phone-ui, 
#edit-phone-ui {
  width: 100% !important;
  padding: 12px !important;
  padding-left: 130px !important;
  border: 1px solid #ccc !important;
  border-radius: 5px !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
  background: #fff !important;
  text-align: left !important;
}

.phone-field #phone-feedback, 
.phone-field #edit-phone-feedback { 
  margin-top: 6px; 
}

/* Increase vertical gap between fields for readability */
.devise-input-group { margin-bottom: 30px; }

  .city-of-harare-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .devise-login-container {
      flex-direction: column;
      max-width: 100%;
      margin: 20px;
    }
  
    .devise-login-box,
    .devise-info-box {
      flex: 1;
      padding: 30px;
    }
  }
  